Last active
December 11, 2015 02:23
-
-
Save nowk/43c443f6c1a2904c7e1e to your computer and use it in GitHub Desktop.
*.go vs *_test.go, Run Go checks similar to Syntastic, but with async.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:neomake_go_gotest_maker = { | |
\ 'exe': 'go', | |
\ 'args': ['test', '-c'], | |
\ 'errorformat': | |
\ '%f:%l: %m,' . | |
\ '%-G#%.%#' | |
\ } | |
au BufEnter *_test.go let g:neomake_go_enabled_makers = ['gotest'] | |
au BufLeave *_test.go let g:neomake_go_enabled_makers = ['go', 'golint', 'govet'] | |
autocmd! BufWritePost *.go Neomake |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment