1. 安装 neovim

brew install neovim

官方仓库地址: GitHub - neovim/neovim

2. 安装后检查事项

nvim # 打开nvim

:checkhealth # 检查健康,是否有不正常项

:ehco has('python3')	# return 0 or 1

如果出现 python 相关的 warning 如provider,下图是正常的状态:

Image.png

那么可以通过 conda 的方式给它配置 python 环境

conda install -c conda-forge neovim

3. 了解 nvim 插件

官方仓库地址: GitHub - rockerBOO/awesome-neovim: Collections of awesome neovim plugins.

4. 了解一个 UP 主的客制化

5. 安装 packer 包管理工具

git clone --depth 1 https://github.com/wbthomason/packer.nvim\
 ~/.local/share/nvim/site/pack/packer/start/packer.nvim

6. 安装 JetBrains-mono-nerd-font 字体

brew tap homebrew/cask-fonts
brew install --cask font-jetbrains-mono-nerd-font
git clone https://github.com/ryanoasis/nerd-fonts.git --depth 1

cd nerd-fonts
 
./install.sh

安装完成之后 终端 设置中更换字体

Image.png

7. 安装 nodejs

asdf add plugin nodejs

asdf list all nodejs

asdf install nodejs 19.4.0

asdf global nodejs 19.4.0

node -v

8. 克隆 up主 仓库

cd ~/.config/

git clone https://github.com/yaocccc/nvim

9. 打开 nvim 执行包同步

nvim

:PackerSync

10. 查看完成效果

Image.png