summaryrefslogtreecommitdiff
path: root/ale_linters/go/govet.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/go/govet.vim')
-rw-r--r--ale_linters/go/govet.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/go/govet.vim b/ale_linters/go/govet.vim
index dddafe17..5da8261c 100644
--- a/ale_linters/go/govet.vim
+++ b/ale_linters/go/govet.vim
@@ -10,8 +10,7 @@ call ale#Set('go_govet_options', '')
function! ale_linters#go#govet#GetCommand(buffer) abort
let l:options = ale#Var(a:buffer, 'go_govet_options')
- return ale#path#BufferCdString(a:buffer) . ' '
- \ . ale#go#EnvString(a:buffer)
+ return ale#go#EnvString(a:buffer)
\ . ale#Var(a:buffer, 'go_go_executable') . ' vet '
\ . (!empty(l:options) ? ' ' . l:options : '')
\ . ' .'
@@ -22,6 +21,7 @@ call ale#linter#Define('go', {
\ 'aliases': ['go vet'],
\ 'output_stream': 'stderr',
\ 'executable': {b -> ale#Var(b, 'go_go_executable')},
+\ 'cwd': '%s:h',
\ 'command': function('ale_linters#go#govet#GetCommand'),
\ 'callback': 'ale#handlers#go#Handler',
\ 'lint_file': 1,