From: Sergey Matveev Date: Mon, 2 Dec 2019 20:51:15 +0000 (+0300) Subject: Let's try to use goimports instead of gofmt X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=e074d12cfcca4bd49962932e6867337e00769cf1 Let's try to use goimports instead of gofmt --- diff --git a/vim/.vim/ftplugin/go/fmt.vim b/vim/.vim/ftplugin/go/fmt.vim index 359545b..49d20dc 100644 --- a/vim/.vim/ftplugin/go/fmt.vim +++ b/vim/.vim/ftplugin/go/fmt.vim @@ -31,7 +31,7 @@ if !exists("g:go_fmt_commands") endif if !exists("g:gofmt_command") - let g:gofmt_command = "gofmt" + let g:gofmt_command = "goimports" endif if g:go_fmt_commands