Managing User Configuration
One of the best parts of separating the user configuration of AstroNvim away from modifying the system files is the ability to manage and track your own user configuration while maintaining the ability to still get AstroNvim updates. The easiest process to do this would be as follows:
Setting up a user configuration
- Use our AstroNvim/user_example GitHub template to make a new personal user configuration repository. For these steps we will assume your repo is
username/astronvim_config
- Clone AstroNvim (normal installation instructions)
git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim
- Clone your empty new repository to your
~/.config/nvim/lua
folder
git clone https://github.com/username/astronvim_config.git ~/.config/nvim/lua/user
- Initlialize AstroNvim (this example is using the unattended installation as described above)
nvim --headless -c 'quitall'
- Modify the
~/.config/nvim/lua/user
folder anduser/init.lua
file to your liking and push the changes you make to your repository
Installing from an existing User Configuration
If you have already created your user configuration and have it tracked in a repository, then the process of getting your system up and running is very easy:
- Clone AstroNvim (normal installation instructions)
git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim
- Clone your empty new repository to your
~/.config/nvim/lua
folder
git clone https://github.com/username/astronvim_config.git ~/.config/nvim/lua/user
- Initialize AstroNvim
nvim --headless -c 'quitall'