其他分享
首页 > 其他分享> > neovim环境搭建

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依赖

sudo apt install python3-pip
sudo apt install python3-venv
pip3 install jedi
pip3 install jedi-language-server
sudo apt install -y nodejs npm 
sudo npm install n -g
sudo n stable
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
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