]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Let's try to use goimports instead of gofmt
authorSergey Matveev <stargrave@stargrave.org>
Mon, 2 Dec 2019 20:51:15 +0000 (23:51 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 2 Dec 2019 20:51:15 +0000 (23:51 +0300)
vim/.vim/ftplugin/go/fmt.vim

index 359545bd4051da18bb08234f3fe59cc61437a9c3..49d20dca637cd9bb0ddacf7ca43a8e48e74ea581 100644 (file)
@@ -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