From 12cab7365cbe126be85bcdf4a7b572d6da5dfacc Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 27 Mar 2022 18:40:22 +0800 Subject: Set ale linters (vim) --- .vim/after/plugin/ale.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.vim/after/plugin/ale.vim b/.vim/after/plugin/ale.vim index 14f9e7f..f8c210e 100644 --- a/.vim/after/plugin/ale.vim +++ b/.vim/after/plugin/ale.vim @@ -1,4 +1,4 @@ -" let g:ale_linters_explicit = 1 +let g:ale_linters_explicit = 1 let g:ale_completion_enabled = 1 let g:ale_completion_autoimport = 1 let g:ale_completion_delay = 500 @@ -15,6 +15,11 @@ let g:ale_cpp_gcc_options = '-Wall -O2 -std=c++14' let g:ale_c_cppcheck_options = '' let g:ale_cpp_cppcheck_options = '' +let g:ale_linters = { + \ 'c': ['clangd', 'cc', 'ccls'], + \ 'go': ['gopls'], + \ } + let g:airline#extensions#ale#enabled = 1 nmap [g (ale_previous_wrap) -- cgit v1.2.3