fixing auto init config

This commit is contained in:
pika 2025-05-12 14:13:24 +02:00
parent 7a8fafdff7
commit 9453ae84a7

View file

@ -95,7 +95,7 @@
checkAndInitConfig() {
if [ -d "$HOME/.config/nvim/" ]; then
echo_info "Prefetching neovim setup configuration.."
run nvim --headless +q
nvim --headless +q
else
echo_warning "You don't have a neovim config installed. Do you want to clone one now? [Y]es (standard), [m]inimal, [n]o"
read -r askNvim
@ -104,12 +104,12 @@
[Yy])
git clone --recursive --depth=1 https://git.k4li.de/dotfiles/nvim.git "$HOME/.config/nvim"
sleep 0.2
run nvim --headless +q
nvim --headless +q
;;
[Mm])
git clone --recursive --depth=1 https://git.k4li.de/dotfiles/nvim-mini.git "$HOME/.config/nvim"
sleep 0.2
run nvim --headless +q
nvim --headless +q
;;
[Nn]) return 0 ;;
*) return 69 ;;
@ -133,8 +133,8 @@
cloneSources
makeInstall
checkAndInitConfig
echo_note "Cleaning up old $cloneDir directory.."
rm -rf "$cloneDir"
checkAndInitConfig
}