fixing auto init config
This commit is contained in:
parent
7a8fafdff7
commit
9453ae84a7
1 changed files with 5 additions and 5 deletions
10
neovim.sh
10
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue