This repository stores my NeoVim config files. Most file are written in lua.
Before setting it up, you should have NeoVim Installed.
The default NeoVim config directory is ~/.config/nvim
, so just clone this repo to that directory, which is
git clone https://github.com/Fr4nk1in-USTC/Nvim-Config.git ~/.config/nvim
If you have trouble connecting Github in mainland China, I recommend you to set up your Github SSH Key and clone it by SSH, which is
git clone [email protected]:Fr4nk1in-USTC/Nvim-Config.git ~/.config/nvim
Now you should go to the config directory by cd ~/.config/nvim
.
Setup Packer.nvim
I use Packer.nvim to manage NeoVim plug-in. So we should set it up first.
- Download Packer.nvim.
git clone --depth 1 https://github.com/wbthomason/packer.nvim \ ~/.local/share/nvim/site/pack/packer/start/packer.nvim
For those who have network issues:
git clone --depth 1 [email protected]:wbthomason/packer.nvim.git \ ~/.local/share/nvim/site/pack/packer/start/packer.nvim
- Set up all the plug-ins. Run
nvim +PackerSync
If you have network issue, add the following config at the beginning of
~/.config/nvim/lua/packages/init.lua
packer.init({ git = { default_url_format = "[email protected]:%s" } })