From f3d25e7e7d83d26897e25b1a46e27d92b9f3c5ca Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 29 Sep 2020 14:45:04 +0300 Subject: use clangd as language server for C/C++ --- dotfiles/.config/nvim/init.vim | 2 ++ 1 file changed, 2 insertions(+) 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'], -- cgit v1.2.3