From 336b5d8274ec5d463bcc8877a69cb9a77c83f1c0 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Mon, 11 Sep 2017 12:07:27 -0700 Subject: [PATCH] Change gofmt to goimports for the vim-go format command so imports are formatted correctly as well --- dotfiles/config/nvim/init.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/config/nvim/init.vim b/dotfiles/config/nvim/init.vim index 435626b..74d386e 100644 --- a/dotfiles/config/nvim/init.vim +++ b/dotfiles/config/nvim/init.vim @@ -152,8 +152,8 @@ au FileType yaml setlocal tabstop=2 expandtab shiftwidth=2 softtabstop=2 " Disable the rust style guide recommended 4 space indentation let g:rust_recommended_style=0 -" Explicitly provide vim-go the gofmt command -let g:go_fmt_command = "gofmt" +" Explicitly provide vim-go the goimports command +let g:go_fmt_command = "goimports" " Enable more highlighting in vim-go let g:go_highlight_types = 1