diff options
Diffstat (limited to '.vim/after/plugin')
-rw-r--r-- | .vim/after/plugin/ale.vim | 21 | ||||
-rw-r--r-- | .vim/after/plugin/youcompleteme.vim | 1 |
2 files changed, 21 insertions, 1 deletions
diff --git a/.vim/after/plugin/ale.vim b/.vim/after/plugin/ale.vim new file mode 100644 index 0000000..14f9e7f --- /dev/null +++ b/.vim/after/plugin/ale.vim @@ -0,0 +1,21 @@ +" let g:ale_linters_explicit = 1 +let g:ale_completion_enabled = 1 +let g:ale_completion_autoimport = 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: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: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, |