Merge pull request #4 from kcotugno/clear-syntasitc-list-on-toggle
Reset/Check Syntasitc on toggle if need
This commit is contained in:
commit
b1c9ea5964
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user