From 9453ae84a73556b40ae82793b6ec731ac2d03daf Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 12 May 2025 14:13:24 +0200 Subject: [PATCH] fixing auto init config --- neovim.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neovim.sh b/neovim.sh index d0e65e7..5108b04 100644 --- a/neovim.sh +++ b/neovim.sh @@ -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 }