diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-25 09:14:57 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-25 09:15:20 +0900 |
commit | be6a709ded8cf09ecb58718240b07c646cf691e2 (patch) | |
tree | d0dbf5a57f44fa85e4909c2e1dc5efa6ad1b837d /settings/gopls.vim | |
parent | 6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88 (diff) | |
download | vim-lsp-settings-be6a709ded8cf09ecb58718240b07c646cf691e2.tar.gz vim-lsp-settings-be6a709ded8cf09ecb58718240b07c646cf691e2.tar.bz2 vim-lsp-settings-be6a709ded8cf09ecb58718240b07c646cf691e2.zip |
Add LspRegisterServer
Closes #7
Diffstat (limited to 'settings/gopls.vim')
-rw-r--r-- | settings/gopls.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/gopls.vim b/settings/gopls.vim index ce5516a..86965cc 100644 --- a/settings/gopls.vim +++ b/settings/gopls.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_gopls au! - autocmd User lsp_setup ++once call lsp#register_server({ + 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#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/', 'go.mod'])))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_gopls \ 'blacklist': lsp_settings#get('gopls', 'blacklist', []), \ 'config': lsp_settings#get('gopls', 'config', {}), \ 'workspace_config': lsp_settings#get('gopls', 'workspace_config', {}), - \ }) + \ } augroup END |