aboutsummaryrefslogtreecommitdiff
path: root/settings/rls.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-24 09:57:43 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-24 09:57:43 +0900
commit6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88 (patch)
treea67e8d0265affa4e5ed3e1f11211c0d0eb9eb062 /settings/rls.vim
parentee41d1afba8c94bab2a5fcfc199b5fede219e7cf (diff)
downloadvim-lsp-settings-6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88.tar.gz
vim-lsp-settings-6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88.tar.bz2
vim-lsp-settings-6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88.zip
Set root_uri
Diffstat (limited to 'settings/rls.vim')
-rw-r--r--settings/rls.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/rls.vim b/settings/rls.vim
index 6b0b7a8..7e1847d 100644
--- a/settings/rls.vim
+++ b/settings/rls.vim
@@ -3,11 +3,11 @@ augroup vimlsp_settings_rls
autocmd User lsp_setup ++once call lsp#register_server({
\ '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/'])))},
\ 'initialization_options': lsp_settings#get('rls', 'initialization_options', v:null),
\ 'whitelist': lsp_settings#get('rls', 'whitelist', ['rust']),
\ 'blacklist': lsp_settings#get('rls', 'blacklist', []),
\ 'config': lsp_settings#get('rls', 'config', {}),
\ 'workspace_config': lsp_settings#get('rls', 'workspace_config', {}),
- \ 'root_uri': {server_info -> lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'Cargo.toml'))},
\ })
augroup END