aboutsummaryrefslogtreecommitdiff
path: root/settings/rls.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-25 09:14:57 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-25 09:15:20 +0900
commitbe6a709ded8cf09ecb58718240b07c646cf691e2 (patch)
treed0dbf5a57f44fa85e4909c2e1dc5efa6ad1b837d /settings/rls.vim
parent6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88 (diff)
downloadvim-lsp-settings-be6a709ded8cf09ecb58718240b07c646cf691e2.tar.gz
vim-lsp-settings-be6a709ded8cf09ecb58718240b07c646cf691e2.tar.bz2
vim-lsp-settings-be6a709ded8cf09ecb58718240b07c646cf691e2.zip
Add LspRegisterServer
Closes #7
Diffstat (limited to 'settings/rls.vim')
-rw-r--r--settings/rls.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/rls.vim b/settings/rls.vim
index 7e1847d..10f2376 100644
--- a/settings/rls.vim
+++ b/settings/rls.vim
@@ -1,6 +1,6 @@
augroup vimlsp_settings_rls
au!
- autocmd User lsp_setup ++once call lsp#register_server({
+ LspRegisterServer {
\ 'name': 'rls',
\ 'cmd': {server_info->lsp_settings#get('rls', 'cmd', [lsp_settings#exec_path('rls')])},
\ 'root_uri':{server_info->lsp_settings#get('rls', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))},
@@ -9,5 +9,5 @@ augroup vimlsp_settings_rls
\ 'blacklist': lsp_settings#get('rls', 'blacklist', []),
\ 'config': lsp_settings#get('rls', 'config', {}),
\ 'workspace_config': lsp_settings#get('rls', 'workspace_config', {}),
- \ })
+ \ }
augroup END