Adding multiple neovim like NVchad, LasyVim, AstroVim, etc.
-
Fuzzy Finder
- To install Fuzzy finder
sudo apt install fzf
- To install Fuzzy finder
-
Neovim
- To install neovim
sudo apt install nvim
- To install neovim
-
To install NVchad
-
git clone https://github.com/NvChad/NvChad ~/.config/NVchad
-
-
To install LasyVim
-
git clone https://github.com/LazyVim/starter ~/.config/Lasyvim
-
-
To install AstroVim
-
git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/Astrovim
-
- Open .bashrc file
-
nvim .bashrc
-
alias nvim-chad="NVIM_APPNAME=NVchad nvim"
alias nvim-astro="NVIM_APPNAME=Astrovim nvim"
alias nvim-lasy="NVIM_APPNAME=Lasyvim nvim"
function nvims() {
items=("my neovim" "NVchad" "Astrovim" "Lasyvim")
config=$(printf "%s\n" "${items[@]}" | fzf --prompt=" Neovim Config >>" --height=50% --layout=reverse --border --exit-0)
if [[ -z $config ]]; then
echo "Nothing selected"
return 0
elif [[ $config == "my neovim" ]]; then
config=""
fi
NVIM_APPNAME=$config nvim $@
}
bind -x '"\C-a": nvims'
nvims