Skip to content

Install AstroNvim without overriding your existing Neovim configuration

License

Notifications You must be signed in to change notification settings

iryston/astronvim_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install AstroNvim without overriding your existing Neovim configuration

Read full article on dev.to

Original Gist

Requirements

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.

Usage

  • 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.

About

Install AstroNvim without overriding your existing Neovim configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages