From f381fd0ca49d55ad9a091f25edb913cf37726ada Mon Sep 17 00:00:00 2001 From: Prabir Date: Sun, 5 Jan 2020 21:31:01 -0800 Subject: enable autoimport of go modules --- settings/gopls.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings') diff --git a/settings/gopls.vim b/settings/gopls.vim index 3a0b93b..bce7b04 100644 --- a/settings/gopls.vim +++ b/settings/gopls.vim @@ -4,7 +4,7 @@ augroup vimlsp_settings_gopls \ 'name': 'gopls', \ 'cmd': {server_info->lsp_settings#get('gopls', 'cmd', [lsp_settings#exec_path('gopls')])}, \ 'root_uri':{server_info->lsp_settings#get('gopls', 'root_uri', lsp_settings#root_uri(['.git/', 'go.mod']))}, - \ 'initialization_options': lsp_settings#get('gopls', 'initialization_options', {"diagnostics": "true"}), + \ 'initialization_options': lsp_settings#get('gopls', 'initialization_options', {"diagnostics": v:true, 'completeUnimported': v:true}), \ 'whitelist': lsp_settings#get('gopls', 'whitelist', ['go']), \ 'blacklist': lsp_settings#get('gopls', 'blacklist', []), \ 'config': lsp_settings#get('gopls', 'config', {}), -- cgit v1.2.3-54-g00ecf