Update go fixers to use ale

This commit is contained in:
ViViDboarder 2021-08-24 09:14:01 -07:00
parent 1dbde430c2
commit eca03d227c
2 changed files with 9 additions and 7 deletions

View File

@ -1,2 +1,9 @@
let g:argwrap_tail_comma = 1 let g:argwrap_tail_comma = 1
let g:ale_fix_on_save = 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

View File

@ -108,19 +108,14 @@ end
" Filetype configuration " Filetype configuration
" Languages with custom configuration " Languages with custom configuration
" Custom go " 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
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' } Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
" Custom rust " Custom rust
let g:rustfmt_autosave = 1 let g:rustfmt_autosave = 1
Plug 'rust-lang/rust.vim' Plug 'rust-lang/rust.vim'
" Lots of custom python " Lots of custom python
call s:smart_source_rc('plugins/python') call s:smart_source_rc('plugins/python')
" Disable polyglot for languages with more robust plugins
" Disable polyglog for languages with more robust plugins
let g:polyglot_disabled = ['go', 'rust'] let g:polyglot_disabled = ['go', 'rust']
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'
" Custom rule for ansible playbook detection " Custom rule for ansible playbook detection