From 05459fde10bf6d30da7bbad1f77682a7845667cd Mon Sep 17 00:00:00 2001 From: Jianxin Hu Date: Sun, 16 Feb 2020 14:05:49 +0800 Subject: Fix syntex error when open go file --- settings/gopls.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/gopls.vim b/settings/gopls.vim index 87bbd9d..ef16622 100644 --- a/settings/gopls.vim +++ b/settings/gopls.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_gopls LspRegisterServer { \ '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(extend(['go.mod'], )))}, + \ 'root_uri':{server_info->lsp_settings#get('gopls', 'root_uri', lsp_settings#root_uri(['go.mod']))}, \ 'initialization_options': lsp_settings#get('gopls', 'initialization_options', {"diagnostics": v:true, 'completeUnimported': v:true, 'matcher': 'fuzzy'}), \ 'whitelist': lsp_settings#get('gopls', 'whitelist', ['go']), \ 'blacklist': lsp_settings#get('gopls', 'blacklist', []), -- cgit v1.2.3-54-g00ecf