Set golangci-lint to lint package in vim instead of file
This commit is contained in:
parent
3296f0e989
commit
3f1ea26120
@ -30,13 +30,16 @@ let g:ale_sign_warning = '‽'
|
||||
let g:ale_echo_msg_format = '%s [%severity%] [%linter%]'
|
||||
let g:ale_set_loclist = 0
|
||||
let g:ale_set_quickfix = 1
|
||||
"{{- if lookPath "golangci-lint" }}
|
||||
let g:ale_go_golangci_lint_package = 1
|
||||
"{{- end }}
|
||||
|
||||
augroup linters
|
||||
autocmd!
|
||||
autocmd FileType javascript let g:ale_linters['javascript'] = ['eslint']
|
||||
"{{ if lookPath "golangci-lint" }}
|
||||
"{{- if lookPath "golangci-lint" }}
|
||||
autocmd FileType go let g:ale_linters['go'] = ['golangci-lint']
|
||||
"{{ end }}
|
||||
"{{- end }}
|
||||
augroup END
|
||||
"{{ end }}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user