diff --git a/plugin/defaults.vim b/plugin/defaults.vim index 9d70683..a710ff0 100644 --- a/plugin/defaults.vim +++ b/plugin/defaults.vim @@ -206,8 +206,12 @@ if !exists('g:formatdef_gofmt_2') let g:formatdef_gofmt_2 = '"gofmt"' endif +if !exists('g:formatdef_goimports') + let g:formatdef_goimports = '"goimports"' +endif + if !exists('g:formatters_go') - let g:formatters_go = ['gofmt_1', 'gofmt_2'] + let g:formatters_go = ['gofmt_1', 'goimports', 'gofmt_2'] endif " Rust