From 5722595c132a62c4b3f9602660b15dbeabc34b8b Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Thu, 2 Mar 2017 10:38:46 -0500 Subject: [PATCH] Customize syntastic --- vimrc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 72370e8..7a224f4 100644 --- a/vimrc +++ b/vimrc @@ -283,7 +283,12 @@ augroup END """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " STATUS LINE """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -:set statusline=%<%f\ (%{&ft})\ %-4(%m%)%=%-19(%3l,%02c%03V%) +set statusline=%<%f\ (%{&ft})\ %-4(%m%)%=%-19(%3l,%02c%03V%) + +" Syntastic status info +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " HIGHLIGHT TODO, NOTE, FIXME, etc @@ -567,6 +572,15 @@ let g:rustfmt_autosave = 1 " auto run rust formatter when saving let g:localvimrc_sandbox = 0 let g:localvimrc_ask = 0 +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" Syntastic +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" NOTE: there is a status line config in the status line section +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 0 +let g:syntastic_check_on_wq = 0 + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " C-TAGS """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""