aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2020-01-06 14:42:42 +0900
committerGitHub <noreply@github.com>2020-01-06 14:42:42 +0900
commit53c8e4302c37ef3481276755778f13e3dee44549 (patch)
tree3e19c0ea2243b3e8100e548c6be7b6c1b9bd1a05
parentdf797afd3431a01a9efd579868d81a4ce1138f99 (diff)
parentf381fd0ca49d55ad9a091f25edb913cf37726ada (diff)
downloadvim-lsp-settings-53c8e4302c37ef3481276755778f13e3dee44549.tar.gz
vim-lsp-settings-53c8e4302c37ef3481276755778f13e3dee44549.tar.bz2
vim-lsp-settings-53c8e4302c37ef3481276755778f13e3dee44549.zip
Merge pull request #68 from prabirshrestha/gopls-autoimport
enable autoimport of go modules
-rw-r--r--settings/gopls.vim2
1 files changed, 1 insertions, 1 deletions
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', {}),