aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/yegappan-lsp.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after/plugin/yegappan-lsp.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,