diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index b0a7c44..4bc1e1d 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -28,6 +28,9 @@ let g:go_term_enabled = 0 let g:go_term_close_on_exit = 0 let g:go_gopls_analyses = { \ 'composites': v:false, + \ 'unusedparams': v:true, + \ 'unusedresult': v:true, + \ 'shadow': v:true, \ } let g:go_fmt_options = { \ 'goimports': '-local github.com/sensiblecodeio/cantabular', diff --git a/vimrc b/vimrc index 5418ed7..1566630 100644 --- a/vimrc +++ b/vimrc @@ -220,12 +220,14 @@ let g:ale_rust_analyzer_config = { \ 'checkOnSave': { 'command': 'clippy', 'enable': v:true }, \ } let g:ale_go_goimports_options = '-local github.com/sensiblecodeio/cantabular' -let g:ale_command_wrapper = 'nice -n5' +" let g:ale_command_wrapper = 'nice -n5' let g:ale_completion_enabled = 0 let g:ale_close_preview_on_insert = 1 let g:ale_hover_to_preview = 1 let g:ale_sign_column_always = 1 let g:ale_history_log_output = 1 +" Currently, gopls only uses default gopls analyzers. +" https://github.com/dense-analysis/ale/issues/3563 let g:ale_linters = { \ 'javascript': ['eslint'], \ 'go': ['gopls'],