aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-08-05 19:07:16 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-08-05 19:07:16 +0300
commit32b3b43ea6950d89640761bb979f4005e22329ee (patch)
tree6404ed146d630d9e2d6c1e7cb5dafdc012864ab3
parent0bfe340435dc7a51868db24a511956c8911a1ba2 (diff)
downloadvimrice-32b3b43ea6950d89640761bb979f4005e22329ee.tar.gz
vimrice-32b3b43ea6950d89640761bb979f4005e22329ee.zip
Make nvim use clangd as lsp for C headers
For those case where they are explicitly marked as CH, i.e. C headers and not C++.
-rw-r--r--dotfiles/.config/nvim/init.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index 0fa9bb7..02b7798 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -219,6 +219,7 @@ call plug#end()
" LSP
let g:LanguageClient_serverCommands = {
\ 'c': ['/usr/bin/clangd'],
+ \ 'ch': ['/usr/bin/clangd'],
\ 'go': ['/usr/bin/gopls'],
\ 'cpp': ['/usr/bin/clangd'],
\ 'python': ['/usr/bin/pyls'],