aboutsummaryrefslogtreecommitdiff
path: root/settings/rust-analyzer.vim
blob: 1b772808c4da7fcf56f7c5f1775e8fa8430ead1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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('rust-analyzer'))},
      \ '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