Managing User Configuration
AstroNvim is installed with the lazy.nvim
plugin manager just like any other plugin in Neovim. The template provided in the installation instructions is simply a minimal Neovim configuration with the lazy.nvim plugin manager that adds AstroNvim along with some example code. This makes it easy to back the configuration up to a git repository.
Setting up a user configuration
-
Use our AstroNvim/template GitHub template to make a new personal user configuration repository. For these steps we will assume your repo is
username/astronvim_config
-
Clone your empty new repository to your
~/.config/nvim
folderTerminal window git clone https://github.com/username/astronvim_config.git ~/.config/nvim
-
Follow the Getting Started Guide Installation
-
Create a new empty repository on Github (in this example we will assume your repo is
username/astronvim_config
). Then from your~/.config/nvim
repository where you cloned the repo:Terminal window git initgit add --allgit commit -m "Initial commit"git branch -M maingit remote add origin https://github.com/username/astronvim_config.gitgit push -u origin main
Installing a user configuration
If you have already created your user configuration and have it tracked in a repository, then the process of getting it installed on a new system is very easy!
-
Clone your repository
Terminal window git clone https://github.com/username/astronvim_config ~/.config/nvim -
Initialize AstroNvim
Terminal window nvim --headless -c 'quitall'