aboutsummaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/ra_lsp_server.vim2
-rw-r--r--settings/rls.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/settings/ra_lsp_server.vim b/settings/ra_lsp_server.vim
index b4e4e87..005c06b 100644
--- a/settings/ra_lsp_server.vim
+++ b/settings/ra_lsp_server.vim
@@ -3,7 +3,7 @@ augroup vimlsp_settings_ra_lsp_server
LspRegisterServer {
\ 'name': 'ra_lsp_server',
\ 'cmd': {server_info->lsp_settings#get('ra_lsp_server', 'cmd', [lsp_settings#exec_path('ra_lsp_server')])},
- \ 'root_uri':{server_info->lsp_settings#get('ra_lsp_server', 'root_uri', lsp_settings#root_uri())},
+ \ 'root_uri':{server_info->lsp_settings#get('ra_lsp_server', 'root_uri', lsp_settings#root_uri(['Cargo.toml']))},
\ 'initialization_options': lsp_settings#get('ra_lsp_server', 'initialization_options', v:null),
\ 'whitelist': lsp_settings#get('ra_lsp_server', 'whitelist', ['rust']),
\ 'blacklist': lsp_settings#get('ra_lsp_server', 'blacklist', []),
diff --git a/settings/rls.vim b/settings/rls.vim
index 22aba06..6e87086 100644
--- a/settings/rls.vim
+++ b/settings/rls.vim
@@ -3,7 +3,7 @@ augroup vimlsp_settings_rls
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_settings#root_uri())},
+ \ 'root_uri':{server_info->lsp_settings#get('rls', 'root_uri', lsp_settings#root_uri(['Cargo.toml']))},
\ 'initialization_options': lsp_settings#get('rls', 'initialization_options', v:null),
\ 'whitelist': lsp_settings#get('rls', 'whitelist', ['rust']),
\ 'blacklist': lsp_settings#get('rls', 'blacklist', []),