aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-27 18:40:22 +0800
committerGuangxiong Lin <[email protected]>2022-03-27 18:40:22 +0800
commit12cab7365cbe126be85bcdf4a7b572d6da5dfacc (patch)
treecf9cae12bc247a436e34d2d0b0cec92eccc476fa
parentfd168a23bdc4f07d549cd91390eea2dc613c542a (diff)
downloaddotfiles-12cab7365cbe126be85bcdf4a7b572d6da5dfacc.tar.gz
dotfiles-12cab7365cbe126be85bcdf4a7b572d6da5dfacc.tar.bz2
dotfiles-12cab7365cbe126be85bcdf4a7b572d6da5dfacc.zip
Set ale linters (vim)
-rw-r--r--.vim/after/plugin/ale.vim7
1 files changed, 6 insertions, 1 deletions
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 <silent> [g <Plug>(ale_previous_wrap)