From eca03d227c30535cdf6e1779c2368dd3ab265562 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 24 Aug 2021 09:14:01 -0700 Subject: [PATCH] Update go fixers to use ale --- vim/ftplugin/go.vim | 7 +++++++ vim/rc/plugins.rc.vim | 9 ++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/vim/ftplugin/go.vim b/vim/ftplugin/go.vim index ea51ced..ed22bf8 100644 --- a/vim/ftplugin/go.vim +++ b/vim/ftplugin/go.vim @@ -1,2 +1,9 @@ let g:argwrap_tail_comma = 1 let g:ale_fix_on_save = 1 +" Disable some vim-go settings when Ale is installed +if exists('g:ale_fixers') + let g:go_def_mapping_enabled = 0 + let g:go_version_warning = 0 + let g:go_fmt_autosave = 0 + let g:go_imports_autosave = 0 +end diff --git a/vim/rc/plugins.rc.vim b/vim/rc/plugins.rc.vim index 422033a..15e4193 100644 --- a/vim/rc/plugins.rc.vim +++ b/vim/rc/plugins.rc.vim @@ -108,19 +108,14 @@ end " Filetype configuration " Languages with custom configuration -" Custom go -let g:go_def_mapping_enabled = 0 -let g:go_version_warning = 0 -let g:go_fmt_autosave = 0 -let g:go_imports_autosave = 0 +" Custom Go Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' } " Custom rust let g:rustfmt_autosave = 1 Plug 'rust-lang/rust.vim' " Lots of custom python call s:smart_source_rc('plugins/python') - -" Disable polyglog for languages with more robust plugins +" Disable polyglot for languages with more robust plugins let g:polyglot_disabled = ['go', 'rust'] Plug 'sheerun/vim-polyglot' " Custom rule for ansible playbook detection