因为coc基于nodejs实现,需要较高版本的node.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | zsh
nvm install --lts
nvim安装:
wget https://github.com/neovim/neovim/releases/download/v0.5.0/nvim.appimage
sudo mv nvim.appimage /usr/local/bin/nvim
sudo chown root:root /usr/local/bin/nvim
sudo chmod ugo+x /usr/local/bin/nvim
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
在spacevim的全局设置~/.SpaceVim.d/init.toml
中修改(默认为YCM YouCompleteMe
):
[options]
auto_complete_method = "coc"