Before proceeding, make sure you have installed the latest stable version of Neovim, which can be downloaded from the releases page on GitHub.
The full list of requirements for using AstroNvim is detailed in this article.
To execute commands in Neovim, type :
followed by your command.
- Open Neovim and execute this command:
echo substitute(stdpath('data'), '\(.*\)\zsnvim', 'astronvim', '')
- Clone AstroNvim repo as
"core"
in the same location as the output of the previous command.
For example (assuming you are using Linux or MacOS):
git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.local/share/astronvim/core
- Open Neovim and execute this command:
echo substitute(stdpath('config'), '\(.*\)\zsnvim', 'astronvim', '')
- Clone this configuration as
"astronvim"
in the same location as the output of the previous command.
For example (assuming you are using Linux or MacOS):
git clone --depth 1 [email protected]:iryston/astronvim_config.git ~/.config/astronvim
- Make an alias that uses the new entry point.
Add the following line to your shell configuration file (e.g. .bashrc or .zshrc) to create a persistent alias for opening Neovim with AstroNvim configuration.
alias astro='nvim -u ~/.config/astronvim/entry.lua'
Note: This command needs to be executed.
- Use the new command to open neovim with AstroNvim.
astro
For more information on customizing AstroNvim, check out the official documentation and the example configuration on GitHub.