Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clangd is not found in VIM using neoclide / coc.nvim

Tags:

vim

coc.nvim

  1. I typed in Vim :CocInstall coc-clangd
  2. Complains about clangd is not installed
  3. sudo apt-get install clangd-10, also i installed clangd-9
  4. still same error appears
  5. reboot
  6. still same error

clangd is not found, you need to install clangd first

Is there something that I miss and you want to know guys?

like image 493
Oprea Catalin Avatar asked Mar 28 '20 13:03

Oprea Catalin


People also ask

Does COC NVIM work with vim?

It works on `vim >= 8.1` and `neovim >= 0.3. 1`. It's a completion framework and language server client which supports extension features of VSCode.

Where is COC settings JSON?

edited. At the moment coc configuration files can be found in $HOME/. config/coc and $HOME/. config/nvim .


1 Answers

  1. clangd-10 will be installed as clangd-10, try this: sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-10 100. https://clangd.llvm.org/installation.html
  2. Make sure clangd can been found from $PATH, check: which clangd or clangd --version
❯ clangd --version
clangd version 10.0.0
like image 143
fannheyward Avatar answered Oct 19 '22 12:10

fannheyward