diff options
Diffstat (limited to 'ale_linters/go')
-rw-r--r-- | ale_linters/go/gometalinter.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ale_linters/go/gometalinter.vim b/ale_linters/go/gometalinter.vim index e6cd7250..671b77cf 100644 --- a/ale_linters/go/gometalinter.vim +++ b/ale_linters/go/gometalinter.vim @@ -6,7 +6,9 @@ if !exists('g:ale_go_gometalinter_options') endif function! ale_linters#go#gometalinter#GetCommand(buffer) abort - return 'gometalinter --include=''^' . expand('%:p') . '.*$'' ' + let l:filename = expand('#' . a:buffer . ':p') + + return 'gometalinter --include=''^' . l:filename . '.*$'' ' \ . ale#Var(a:buffer, 'go_gometalinter_options') \ . ' ' . ale#Escape(fnamemodify(bufname(a:buffer), ':p:h')) endfunction |