diff options
Diffstat (limited to 'settings/rust-analyzer.vim')
-rw-r--r-- | settings/rust-analyzer.vim | 13 |
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 |