aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-10-20 23:18:07 +0800
committerGuangxiong Lin <[email protected]>2022-10-20 23:18:07 +0800
commite3ac686d4f5d930a347d618e20c07fac4e37400e (patch)
treeaaedb7d7b007c762bbf3c4abd8aea03d1d98ee5a
parent151801fab44775f1b0d7c9be05948df9ea43ae72 (diff)
downloaddotfiles-e3ac686d4f5d930a347d618e20c07fac4e37400e.tar.gz
dotfiles-e3ac686d4f5d930a347d618e20c07fac4e37400e.tar.bz2
dotfiles-e3ac686d4f5d930a347d618e20c07fac4e37400e.zip
Add omnisharp in vim lsp config
-rw-r--r--.vim/after/plugin/lsp.vim8
1 files changed, 8 insertions, 0 deletions
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({