This repository hosts scripts for easy switching between different Neovim configurations. It is designed to help users quickly switch their Neovim environment to suit various coding needs or preferences. This work is inspired by the concepts shared in this gist by Elijah Manor. We are thankful to Elijah for the inspiration and guidance provided through his work.
nvim_install.sh
: Script to install Neovim and set up the configuration switcher.nvim_uninstall.sh
: Script to uninstall Neovim and remove the configuration switcher setup.
zsh
should be your default shell.git
andbrew
must be installed on your system.- Ensure you have
fzf
installed for fuzzy finding capabilities within the switcher script.
-
Clone this repository to your local machine.
git clone https://github.com/MohamedElashri/nvim-switcher cd nvim-switcher
-
Run the
nvim_install.sh
script to set up the Neovim configuration switcher:./nvim_install.sh
-
This script will install Neovim (if not already installed), set up various aliases for Neovim configurations, and enable a function to switch configurations easily.
After installation, you can switch between different Neovim configurations by using the following aliases:
nvim-lazy
for LazyVim configuration.nvim-kick
for Kickstart configuration.nvim-chad
for NvChad configuration.nvim-astro
for AstroNvim configuration.
Additionally, you can use the nvims
command to invoke a fuzzy finder interface and select your desired Neovim configuration.
To uninstall Neovim and remove the configuration switcher, run the nvim_uninstall.sh
script:
./nvim_uninstall.sh
This will revert the changes made by the installation script, including removing any installed Neovim configurations and cleaning up environment modifications.
- Elijah Manor for the original concept.
- The creators and contributors of the Neovim configurations we support:
LazyVim
,Kickstart.nvim
,NvChad
, andAstroNvim.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are very welcome! If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!