aboutsummaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-28 22:01:06 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-28 22:01:06 +0900
commitc471a25d1140d42f74a07a9ae008d82f5e6341ac (patch)
tree112541420be3559fed36a95e3d5b50ad1aedad45 /settings
parent3562d7b853a6fb2589631b42517348f5af8ab760 (diff)
downloadvim-lsp-settings-c471a25d1140d42f74a07a9ae008d82f5e6341ac.tar.gz
vim-lsp-settings-c471a25d1140d42f74a07a9ae008d82f5e6341ac.tar.bz2
vim-lsp-settings-c471a25d1140d42f74a07a9ae008d82f5e6341ac.zip
Add rust-analyzer
Diffstat (limited to 'settings')
-rw-r--r--settings/ra_lsp_server.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/ra_lsp_server.vim b/settings/ra_lsp_server.vim
new file mode 100644
index 0000000..5965e7e
--- /dev/null
+++ b/settings/ra_lsp_server.vim
@@ -0,0 +1,13 @@
+augroup vimlsp_settings_ra_lsp_server
+ au!
+ 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(g:lsp_settings_root_markers))},
+ \ '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', []),
+ \ 'config': lsp_settings#get('ra_lsp_server', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('ra_lsp_server', 'workspace_config', {}),
+ \ }
+augroup END