aboutsummaryrefslogtreecommitdiff
path: root/.vim/plugins/ale.vim
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-03-16 10:42:48 +0800
committergxlin <[email protected]>2021-03-16 10:42:48 +0800
commit06929ba11c0ef83da2462f60ee8c6dc07a2aa9a4 (patch)
tree7eede7fef35e892ec41b0db529819ce33871b016 /.vim/plugins/ale.vim
parent4d3b20b9445c1bcdd015e2babc03da91651898ed (diff)
downloaddotfiles-06929ba11c0ef83da2462f60ee8c6dc07a2aa9a4.tar.gz
dotfiles-06929ba11c0ef83da2462f60ee8c6dc07a2aa9a4.tar.bz2
dotfiles-06929ba11c0ef83da2462f60ee8c6dc07a2aa9a4.zip
Split .vimrc to multiple vimscript files
Diffstat (limited to '.vim/plugins/ale.vim')
-rw-r--r--.vim/plugins/ale.vim24
1 files changed, 24 insertions, 0 deletions
diff --git a/.vim/plugins/ale.vim b/.vim/plugins/ale.vim
new file mode 100644
index 0000000..f092c62
--- /dev/null
+++ b/.vim/plugins/ale.vim
@@ -0,0 +1,24 @@
+Plug 'dense-analysis/ale'
+
+let g:ale_linters_explicit = 1
+let g:ale_completion_delay = 500
+let g:ale_echo_delay = 20
+let g:ale_lint_delay = 500
+let g:ale_echo_msg_format = '[%linter%] %code: %%s'
+let g:ale_lint_on_text_changed = 'normal'
+let g:ale_lint_on_insert_leave = 1
+let g:airline#extensions#ale#enabled = 1
+
+let g:ale_c_gcc_options = '-Wall -O2 -std=c99'
+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_sign_error = "\ue009\ue009"
+hi! clear SpellBad
+hi! clear SpellCap
+hi! clear SpellRare
+hi! SpellBad gui=undercurl guisp=red
+hi! SpellCap gui=undercurl guisp=blue
+hi! SpellRare gui=undercurl guisp=magenta
+