From b25fde99ade9ba11951bca9695ec7f966e4a1a25 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Sun, 21 Feb 2016 00:39:06 -0500 Subject: [PATCH] added goimports formatter for go --- plugin/defaults.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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