mirror of
https://github.com/amix/vimrc
synced 2025-06-24 07:44:59 +08:00
Updated plugins
This commit is contained in:
@ -50,11 +50,15 @@ function! SyntaxCheckers_go_go_GetLocList() dict
|
||||
" compiled by `go build`, therefore `go test` must be called for those.
|
||||
if match(expand('%'), '\m_test\.go$') == -1
|
||||
let makeprg = 'go build ' . syntastic#c#NullOutput()
|
||||
let cleanup = 0
|
||||
else
|
||||
let makeprg = 'go test -c ' . syntastic#c#NullOutput()
|
||||
let cleanup = 1
|
||||
endif
|
||||
|
||||
" The first pattern is for warnings from C compilers.
|
||||
let errorformat =
|
||||
\ '%W%f:%l: warning: %m,' .
|
||||
\ '%E%f:%l:%c:%m,' .
|
||||
\ '%E%f:%l:%m,' .
|
||||
\ '%C%\s%\+%m,' .
|
||||
@ -70,6 +74,10 @@ function! SyntaxCheckers_go_go_GetLocList() dict
|
||||
\ 'cwd': expand('%:p:h'),
|
||||
\ 'defaults': {'type': 'e'} })
|
||||
|
||||
if cleanup
|
||||
call delete(expand('%:p:h') . syntastic#util#Slash() . expand('%:p:h:t') . '.test')
|
||||
endif
|
||||
|
||||
return errors
|
||||
endfunction
|
||||
|
||||
|
Reference in New Issue
Block a user