mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 18:37:34 +00:00
Update go fixers to use ale
This commit is contained in:
parent
1dbde430c2
commit
eca03d227c
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user