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() { checkAndInitConfig() {
if [ -d "$HOME/.config/nvim/" ]; then if [ -d "$HOME/.config/nvim/" ]; then
echo_info "Prefetching neovim setup configuration.." echo_info "Prefetching neovim setup configuration.."
run nvim --headless +q nvim --headless +q
else 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" 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 read -r askNvim
@ -104,12 +104,12 @@
[Yy]) [Yy])
git clone --recursive --depth=1 https://git.k4li.de/dotfiles/nvim.git "$HOME/.config/nvim" git clone --recursive --depth=1 https://git.k4li.de/dotfiles/nvim.git "$HOME/.config/nvim"
sleep 0.2 sleep 0.2
run nvim --headless +q nvim --headless +q
;; ;;
[Mm]) [Mm])
git clone --recursive --depth=1 https://git.k4li.de/dotfiles/nvim-mini.git "$HOME/.config/nvim" git clone --recursive --depth=1 https://git.k4li.de/dotfiles/nvim-mini.git "$HOME/.config/nvim"
sleep 0.2 sleep 0.2
run nvim --headless +q nvim --headless +q
;; ;;
[Nn]) return 0 ;; [Nn]) return 0 ;;
*) return 69 ;; *) return 69 ;;
@ -133,8 +133,8 @@
cloneSources cloneSources
makeInstall makeInstall
checkAndInitConfig
echo_note "Cleaning up old $cloneDir directory.." echo_note "Cleaning up old $cloneDir directory.."
rm -rf "$cloneDir" rm -rf "$cloneDir"
checkAndInitConfig
} }