Reset/Check Syntasitc on toggle if need

This commit is contained in:
Kevin Cotugno 2020-10-29 19:13:50 -07:00
parent 8fa9febf5b
commit 53ce537e08

View File

@ -234,7 +234,18 @@ let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1 let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0 let g:syntastic_check_on_wq = 0
nnoremap <leader>y :SyntasticToggleMode<CR> function ToggleSyntastic()
if !exists('b:syntastic_mode') || b:syntastic_mode == 'active'
let b:syntastic_mode = 'passive'
exec 'SyntasticReset'
else
let b:syntastic_mode = 'active'
exec 'SyntasticCheck'
end
endfunction
nnoremap <leader>y :call ToggleSyntastic()<CR>
" Tagbar " Tagbar
let g:tagbar_type_go = { let g:tagbar_type_go = {