neovim环境搭建
作者:互联网
neovim环境搭建
安装新版本neovim
sudo apt install software-properties-common
sudo apt update
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt install neovim
nvim --version
安装lsp依赖
- 安装pip
sudo apt install python3-pip
sudo apt install python3-venv
pip3 install jedi
pip3 install jedi-language-server
- 安装高版本node
sudo apt install -y nodejs npm
sudo npm install n -g
sudo n stable
- 安装yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
- 查看版本
node --version // v16.14.2, node版本需要大于12.0.0
npm --version // 8.5.0
- npm配置国内镜像
sudo npm config set registry https://registry.npm.taobao.org
配置neovim
mkdir -p ~/.config/nvim
cd ~/.config/nvim
touch init.vim
标签:neovim,npm,sudo,环境,apt,version,install,搭建 来源: https://www.cnblogs.com/GarrodShadowsong/p/16663965.html