aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2019-06-10 20:19:12 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:28 +0100
commit3392160856fd369b92ddb099aa491fde1931e5f3 (patch)
tree5d267767a94582df990e2de5dc03014c1adab937 /vimrc
parentd527a988b7eaba36c7526295b90bfb8cc3f01cde (diff)
downloaddotnvim-3392160856fd369b92ddb099aa491fde1931e5f3.tar.gz
dotnvim-3392160856fd369b92ddb099aa491fde1931e5f3.zip
Enable sytactic for few types
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index d623b43..61669a2 100644
--- a/vimrc
+++ b/vimrc
@@ -43,14 +43,16 @@ set statusline +=%=%-10L
set statusline +=%=%-14.(%l,%c%V%)\ %P
" syntastic
-let g:syntastic_python_checkers = ['pyflakes']
+let g:syntastic_python_checkers = ['flake8', 'pyflakes']
let g:syntastic_go_checkers = ['go', 'golint', 'govet', 'errcheck']
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
let g:syntastic_loc_list_height = 5
" default to passive and manual checks
-let g:syntastic_mode_map = { 'mode': 'passive' }
+let g:syntastic_mode_map = {
+ \ 'mode': 'passive',
+ \ 'active_filetypes': [ 'python', 'go' ] }
" make easy to perform a check
noremap <C-F6> :SyntasticCheck<CR>