From e73e77795f7324041fe2d9544b09399b8286d043 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 3 Mar 2024 13:33:06 +0800 Subject: Add clang lsp --- .vim/after/plugin/yegappan-lsp.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) 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, -- cgit v1.2.3