aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2024-03-03 13:33:06 +0800
committerGuangxiong Lin <[email protected]>2024-03-03 13:33:06 +0800
commite73e77795f7324041fe2d9544b09399b8286d043 (patch)
tree0c71a3879166dbbbb6f60cd88adf250aaf8328a2 /.vim
parentf3388ed729f8d8463b31a7166332a7ac6b389047 (diff)
downloaddotfiles-e73e77795f7324041fe2d9544b09399b8286d043.tar.gz
dotfiles-e73e77795f7324041fe2d9544b09399b8286d043.tar.bz2
dotfiles-e73e77795f7324041fe2d9544b09399b8286d043.zip
Add clang lsp
Diffstat (limited to '.vim')
-rw-r--r--.vim/after/plugin/yegappan-lsp.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/.vim/after/plugin/yegappan-lsp.vim b/.vim/after/plugin/yegappan-lsp.vim
index c37c418..479bcd6 100644
--- a/.vim/after/plugin/yegappan-lsp.vim
+++ b/.vim/after/plugin/yegappan-lsp.vim
@@ -33,6 +33,17 @@ if executable('rust-analyzer')
\ }])
endif
+if executable('clangd')
+ call LspAddServer([#{
+ \ name: 'clangd',
+ \ filetype: ['c', 'cpp'],
+ \ omnicompl: v:true,
+ \ path: exepath('clangd'),
+ \ args: [],
+ \ syncInit: v:true
+ \ }])
+endif
+
call LspOptionsSet(#{
\ aleSupport: v:true,
\ autoComplete: v:false,