aboutsummaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
authorPrabir <mail@prabir.me>2020-02-16 22:54:38 -0800
committerPrabir <mail@prabir.me>2020-02-16 22:54:38 -0800
commit67d74e925dcf9dbf095ad9361d0736bb17245ceb (patch)
treefa158bcf4441fcce8876f2587cf536bbf842aa66 /settings
parent7ec03dedd2596d4a99a6e0cd6f64025b5ae14e8e (diff)
downloadvim-lsp-settings-67d74e925dcf9dbf095ad9361d0736bb17245ceb.tar.gz
vim-lsp-settings-67d74e925dcf9dbf095ad9361d0736bb17245ceb.tar.bz2
vim-lsp-settings-67d74e925dcf9dbf095ad9361d0736bb17245ceb.zip
add Cargo.toml for search and update ra_lsp_server
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', []),