aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-09-29 14:45:04 +0300
committerYaroslav <contact@yaroslavps.com>2020-09-29 14:45:04 +0300
commitf3d25e7e7d83d26897e25b1a46e27d92b9f3c5ca (patch)
tree80aa0413221e1974aa82fc687b29a4d96ba88bc5
parent59503a30522fad9d87c878f3eb71a8c5e64d8562 (diff)
downloadvimrice-f3d25e7e7d83d26897e25b1a46e27d92b9f3c5ca.tar.gz
vimrice-f3d25e7e7d83d26897e25b1a46e27d92b9f3c5ca.zip
use clangd as language server for C/C++
-rw-r--r--dotfiles/.config/nvim/init.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index cfbe8f6..11fb63f 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -202,6 +202,8 @@ au BufEnter * let &titlestring = "vim - " . expand("%t")
" LSP
let g:LanguageClient_serverCommands = {
+ \ 'c': ['/usr/bin/clangd'],
+ \ 'cpp': ['/usr/bin/clangd'],
\ 'rust': ['/usr/bin/rustup', 'run', 'stable', 'rls'],
\ 'javascript': ['/usr/local/bin/javascript-typescript-stdio'],
\ 'javascript.jsx': ['tcp://127.0.0.1:2089'],