aboutsummaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-02-18 22:00:35 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2020-02-18 22:00:35 +0900
commit6198d0512be28fc2eeb6dfa7bf2a18f8c7f31ee3 (patch)
treeb2a855b07ef0c9b5939b885f89523926fa0dff5d /settings
parent40fa3b6cbb9c20786cba8b998e03326724ad8253 (diff)
downloadvim-lsp-settings-6198d0512be28fc2eeb6dfa7bf2a18f8c7f31ee3.tar.gz
vim-lsp-settings-6198d0512be28fc2eeb6dfa7bf2a18f8c7f31ee3.tar.bz2
vim-lsp-settings-6198d0512be28fc2eeb6dfa7bf2a18f8c7f31ee3.zip
rust-analyzer: add rust-analyzer
I think it's better to keep ra_lsp_server for a while as a user transition period, so I add rust-analyzer instead of rename.
Diffstat (limited to 'settings')
-rw-r--r--settings/rust-analyzer.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/rust-analyzer.vim b/settings/rust-analyzer.vim
new file mode 100644
index 0000000..d07fc1c
--- /dev/null
+++ b/settings/rust-analyzer.vim
@@ -0,0 +1,13 @@
+augroup vimlsp_settings_rust-analyzer
+ au!
+ LspRegisterServer {
+ \ 'name': 'rust-analyzer',
+ \ 'cmd': {server_info->lsp_settings#get('rust-analyzer', 'cmd', [lsp_settings#exec_path('rust-analyzer')])},
+ \ 'root_uri':{server_info->lsp_settings#get('rust-analyzer', 'root_uri', lsp_settings#root_uri(['Cargo.toml']))},
+ \ 'initialization_options': lsp_settings#get('rust-analyzer', 'initialization_options', v:null),
+ \ 'whitelist': lsp_settings#get('rust-analyzer', 'whitelist', ['rust']),
+ \ 'blacklist': lsp_settings#get('rust-analyzer', 'blacklist', []),
+ \ 'config': lsp_settings#get('rust-analyzer', 'config', lsp_settings#server_config('rust-analyzer')),
+ \ 'workspace_config': lsp_settings#get('rust-analyzer', 'workspace_config', {}),
+ \ }
+augroup END