From e3ac686d4f5d930a347d618e20c07fac4e37400e Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 20 Oct 2022 23:18:07 +0800 Subject: Add omnisharp in vim lsp config --- .vim/after/plugin/lsp.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.vim/after/plugin/lsp.vim') diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index 1aaee35..3e5267b 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -36,6 +36,14 @@ if executable('clangd') \ }) endif +if executable('omnisharp') + au User lsp_setup call lsp#register_server({ + \ 'name': 'omnisharp', + \ 'cmd': {server_info->['omnisharp', '-lsp']}, + \ 'allowlist': ['cs'], + \ }) +endif + if executable('godot') au User lsp_setup \ call lsp#register_server({ -- cgit v1.2.3