diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-24 09:50:15 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-24 09:50:15 +0900 |
commit | ee41d1afba8c94bab2a5fcfc199b5fede219e7cf (patch) | |
tree | 966d1c33f34be065ab47b90128f681f458e02077 /settings/gopls.vim | |
parent | caa3b449fa83aec41a91a816e5274612d73d5a8e (diff) | |
download | vim-lsp-settings-ee41d1afba8c94bab2a5fcfc199b5fede219e7cf.tar.gz vim-lsp-settings-ee41d1afba8c94bab2a5fcfc199b5fede219e7cf.tar.bz2 vim-lsp-settings-ee41d1afba8c94bab2a5fcfc199b5fede219e7cf.zip |
Fix rootUri
Diffstat (limited to 'settings/gopls.vim')
-rw-r--r-- | settings/gopls.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/gopls.vim b/settings/gopls.vim index d403ba8..bfec7fa 100644 --- a/settings/gopls.vim +++ b/settings/gopls.vim @@ -4,6 +4,7 @@ augroup vimlsp_settings_gopls \ 'name': 'gopls', \ 'cmd': {server_info->lsp_settings#get('gopls', 'cmd', [lsp_settings#exec_path('gopls')])}, \ 'initialization_options': lsp_settings#get('gopls', 'initialization_options', {"diagnostics": "true"}), + \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/', 'go.mod']))}, \ 'whitelist': lsp_settings#get('gopls', 'whitelist', ['go']), \ 'blacklist': lsp_settings#get('gopls', 'blacklist', []), \ 'config': lsp_settings#get('gopls', 'config', {}), |