diff --git a/dot_config/vim/settings.vim.tmpl b/dot_config/vim/settings.vim.tmpl index 90599c3..76f2659 100644 --- a/dot_config/vim/settings.vim.tmpl +++ b/dot_config/vim/settings.vim.tmpl @@ -34,6 +34,9 @@ let g:ale_set_quickfix = 1 augroup linters autocmd! autocmd FileType javascript let g:ale_linters['javascript'] = ['eslint'] +"{{ if lookPath "golangci-lint" }} + autocmd FileType go let g:ale_linters['go'] = ['golangci-lint'] +"{{ end }} augroup END "{{ end }}