From 3e942f6f62440f68f104897557c37d65da234190 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 6 Feb 2021 22:52:50 +0100 Subject: [PATCH] Add explicit autosave for gofmt Signed-off-by: Knut Ahlers --- init.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/init.vim b/init.vim index 21f9c87..976dea3 100644 --- a/init.vim +++ b/init.vim @@ -964,6 +964,7 @@ autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags let g:go_autodetect_gopath = 0 let g:go_def_mode = "gopls" +let g:go_fmt_autosave = 1 let g:go_fmt_command = "gopls" let g:go_gopls_gofumpt = 1 let g:go_imports_autosave = 1