From fa733ebdf2aacea3934045978d9eb178ae9bd4fa Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 3 Feb 2021 22:14:10 +0100 Subject: [PATCH] Configure go imports through gopls Signed-off-by: Knut Ahlers --- init.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.vim b/init.vim index 972d1f0..21f9c87 100644 --- a/init.vim +++ b/init.vim @@ -964,8 +964,10 @@ autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags let g:go_autodetect_gopath = 0 let g:go_def_mode = "gopls" -let g:go_fmt_command="gopls" -let g:go_gopls_gofumpt=1 +let g:go_fmt_command = "gopls" +let g:go_gopls_gofumpt = 1 +let g:go_imports_autosave = 1 +let g:go_imports_mode = "gopls" let g:go_metalinter_deadline = "20s" "