nvim + coc.nvim

何兴学
2023-12-01

卸掉旧版
sudo apt remove node.js
sudo apt autoremove node.js
安装 node >=v10.12.0
下载 node-v10.24.0-linux-x64.tar.gz (已编译)
1)压解到 ~/
2) 创建快捷方式
sudo ln -s ~/node-v10.24.0-linux-x64/bin/npm /usr/local/bin/
sudo ln -s ~/node-v10.24.0-linux-x64/bin/node /usr/local/bin/

sudo pip3 install pyvim

sudo apt remove clang
sudo apt auteremove clang

sudo apt install clang-10
sudo ln -sf /usr/bin/clang-10 /usr/bin/clang
clang -v

sudo apt install clangd-10
sudo ln -sf /usr/bin/clangd-10 /usr/bin/clangd
clangd --version
Error detected while processing function airline#extensions#hunks#get_hunks[15].
.airline#extensions#hunks#get_raw_hunks[10]…75_coc_git_enabled[7]…CocActi
on:
line 2:
E605: Exception not caught: coc.nvim not ready when invoke CocAction “extensionS
tats”

解决上述错误方法:
.config/nvim/init.vim
let g:airline#extensions#hunks#enabled = 0
Plug ‘neoclide/coc.nvim’, {‘branch’: ‘release’}

:CocInstall coc-clangd coc-sh coc-python coc-cmake coc-clang-format-style-options

[coc.nvim] clangd was not found on your PATH
sudo ln -s /usr/lib/llvm-10/bin/clangd /usr/bin/clangd

文件.bashrc
export NODE_HOME=~/node-v10.24.0-linux-x64
export PATH= N O D E H O M E / b i n : NODE_HOME/bin: NODEHOME/bin:PATH

sudo ln -s /usr/lib/llvm-10/bin/clangd /usr/bin/clangd

 类似资料:

相关阅读

相关文章

相关问答