From 3296f0e9890a7964e748b8ac088e00975d7c5751 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Wed, 27 Sep 2023 08:00:36 -0700 Subject: [PATCH] Change vim ale linter for go to golangci-lint --- dot_config/vim/settings.vim.tmpl | 3 +++ 1 file changed, 3 insertions(+) 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 }}