aboutsummaryrefslogtreecommitdiff
path: root/settings/omnisharp-lsp.vim
blob: 5e853356ac50eda59b433640922a31b96d81f0a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
augroup vimlsp_settings_omnisharp_lsp
  au!
  autocmd User lsp_setup ++once call lsp#register_server({
      \ 'name': 'omnisharp-lsp',
      \ 'cmd': {server_info->lsp_settings#get('omnisharp-lsp', 'cmd', [lsp_settings#exec_path('omnisharp'), '-lsp'])},
      \ 'initialization_options': lsp_settings#get('omnisharp-lsp', 'initialization_options', v:null),
      \ 'whitelist': lsp_settings#get('omnisharp-lsp', 'whitelist', ['cs']),
      \ 'blacklist': lsp_settings#get('omnisharp-lsp', 'blacklist', []),
      \ 'config': lsp_settings#get('omnisharp-lsp', 'config', {}),
      \ 'workspace_config': lsp_settings#get('omnisharp-lsp', 'workspace_config', {}),
      \ })
augroup END