Skip to content

Commit d75e175

Browse files
178inabafatih
authored andcommitted
Fix syntastic help (#1323)
* Fix syntastic help for errcheck
1 parent 4f2bdd6 commit d75e175

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/vim-go.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,13 @@ How do I use vim-go with syntastic?~
16571657
Sometimes when using both `vim-go` and `syntastic` Vim will start lagging
16581658
while saving and opening files. The following fixes this:
16591659
>
1660-
let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']
1660+
let g:syntastic_go_checkers = ['golint', 'govet']
1661+
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
1662+
<
1663+
If you want to add errcheck you can use gometalinter as a wrapper
1664+
>
1665+
let g:syntastic_go_checkers = ['golint', 'govet', 'gometalinter']
1666+
let g:syntastic_go_gometalinter_args = ['--disable-all', '--enable=errcheck']
16611667
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
16621668
<
16631669
Another issue with `vim-go` and `syntastic` is that the location list window

0 commit comments

Comments
 (0)