Update install-nvchad.sh

Automatic plugin installation instead of manual
This commit is contained in:
Ninjdai 2024-03-20 15:55:41 +01:00
parent 467009c83b
commit c2dc38eb0b

View File

@ -20,7 +20,7 @@ function main ()
cleanup
echo -e "${C_LIME}Script has finished running !${NO_FORMAT}"
echo -e "${C_LIME}Script has finished running ! Please run source ~/.bashrc or reopen your terminal !${NO_FORMAT}"
}
check_wget ()
@ -93,8 +93,8 @@ check_and_install_nvchad ()
echo "Installing NvChad..."
git clone https://github.com/NvChad/starter $NVIM_CONFIG
read -p "Neovim is about to launch. After it has finished installing plugins, please run ':MasonInstallAll' to install parsers (Press Enter to continue)"
nvim
read -p "Neovim is about to launch. After it has finished installing plugins, it should automatically exit ! (Press Enter to continue)"
nvim +MasonInstallAll +qall
echo -e "${C_LIME}NvChad is now installed !${NO_FORMAT}"
fi