diff options
author | Guangxiong Lin <[email protected]> | 2022-03-27 10:22:58 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-27 10:22:58 +0800 |
commit | 624dd0e1708a4bc1a612c071e1cb625a45e97a91 (patch) | |
tree | a46cad499454e35d2f6032130a1cdaa3b5fd6e61 /.vim | |
parent | aff5dd1c6bd0e9b03d64456322eb28ba331f4315 (diff) | |
download | dotfiles-624dd0e1708a4bc1a612c071e1cb625a45e97a91.tar.gz dotfiles-624dd0e1708a4bc1a612c071e1cb625a45e97a91.tar.bz2 dotfiles-624dd0e1708a4bc1a612c071e1cb625a45e97a91.zip |
Use ale to show diagnostic (vim)
Diffstat (limited to '.vim')
-rw-r--r-- | .vim/after/plugin/ale.vim (renamed from .vim/plugin/ale.vim) | 15 | ||||
-rw-r--r-- | .vim/after/plugin/youcompleteme.vim | 1 |
2 files changed, 6 insertions, 10 deletions
diff --git a/.vim/plugin/ale.vim b/.vim/after/plugin/ale.vim index 105bfa8..14f9e7f 100644 --- a/.vim/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 @@ -7,18 +7,15 @@ 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_sign_error = 'E>' +let g:ale_sign_warning = 'W>' 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 +let g:airline#extensions#ale#enabled = 1 +nmap <silent> [g <Plug>(ale_previous_wrap) +nmap <silent> ]g <Plug>(ale_next_wrap) diff --git a/.vim/after/plugin/youcompleteme.vim b/.vim/after/plugin/youcompleteme.vim index e673a65..536ab9c 100644 --- a/.vim/after/plugin/youcompleteme.vim +++ b/.vim/after/plugin/youcompleteme.vim @@ -8,7 +8,6 @@ let g:ycm_auto_trigger = 1 let g:ycm_show_diagnostics_ui = 0 let g:ycm_error_symbol = 'E>' let g:ycm_warning_symbol = 'W>' -autocmd BufNewFile,BufRead *.go let g:ycm_show_diagnostics_ui = 1 let g:ycm_filetype_whilelist = { \ "c": 1, |