diff options
author | Guangxiong Lin <[email protected]> | 2024-03-03 13:33:06 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2024-03-03 13:33:06 +0800 |
commit | e73e77795f7324041fe2d9544b09399b8286d043 (patch) | |
tree | 0c71a3879166dbbbb6f60cd88adf250aaf8328a2 | |
parent | f3388ed729f8d8463b31a7166332a7ac6b389047 (diff) | |
download | dotfiles-e73e77795f7324041fe2d9544b09399b8286d043.tar.gz dotfiles-e73e77795f7324041fe2d9544b09399b8286d043.tar.bz2 dotfiles-e73e77795f7324041fe2d9544b09399b8286d043.zip |
Add clang lsp
-rw-r--r-- | .vim/after/plugin/yegappan-lsp.vim | 11 |
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, |