Skip to content

Commit 6dd8903

Browse files
authored
respect :compiler!
otherwise :compiler does not respect global settings; setting &l:makeprg is fine though, see discussion at vim/vim#18686
1 parent 6c1d3ee commit 6dd8903

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

compiler/golint.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ let &l:makeprg = 'staticcheck ./...'
1111
if len(get(g:, 'gopher_build_tags', [])) > 0
1212
let &l:makeprg .= printf(' --build-tags "%s"', join(gopher#bufsetting('gopher_build_tags', []) ' '))
1313
endif
14+
exe 'CompilerSet makeprg='..escape(&l:makeprg, ' \|"')
1415

1516
" golangci-lint:
1617
" benchmark_test.go:34:2 deadcode `valFormT2` is unused

0 commit comments

Comments
 (0)