diff options
Diffstat (limited to 'settings')
-rw-r--r-- | settings/omnisharp-lsp.vim | 12 | ||||
-rw-r--r-- | settings/omnisharp.vim | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/settings/omnisharp-lsp.vim b/settings/omnisharp-lsp.vim new file mode 100644 index 0000000..5e85335 --- /dev/null +++ b/settings/omnisharp-lsp.vim @@ -0,0 +1,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 diff --git a/settings/omnisharp.vim b/settings/omnisharp.vim deleted file mode 100644 index 2446081..0000000 --- a/settings/omnisharp.vim +++ /dev/null @@ -1,12 +0,0 @@ -augroup vimlsp_settings_omnisharp-node-client - au! - autocmd User lsp_setup ++once call lsp#register_server({ - \ 'name': 'omnisharp', - \ 'cmd': {server_info->lsp_settings#get('omnisharp-node-client', 'cmd', [lsp_settings#exec_path('omnisharp'), '-lsp'])}, - \ 'initialization_options': lsp_settings#get('omnisharp-node-client', 'initialization_options', v:null), - \ 'whitelist': lsp_settings#get('omnisharp-node-client', 'whitelist', ['cs']), - \ 'blacklist': lsp_settings#get('omnisharp-node-client', 'blacklist', []), - \ 'config': lsp_settings#get('omnisharp-node-client', 'config', {}), - \ 'workspace_config': lsp_settings#get('omnisharp-node-client', 'workspace_config', {}), - \ }) -augroup END |