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