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() {
|
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
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue