Skip to content

Commit

Permalink
restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
pika committed Oct 27, 2024
1 parent b51af97 commit 6666dda
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions core/tabs/applications-setup/Developer-tools/neovim-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,27 @@ linkNeovimConfig() {
ln -s "$gitpath/titus-kickstart/"* "$HOME/.config/nvim/" # Wild card is used here to link all contents of titus-kickstart.
}

askToClone() {
printf "%b\n" "${GREEN}Do you also want to install the TitusDotfiles for neovim? (Y/n): ${RC}"
read -r _titusDots
case "$_titusDots" in
Y | y)
cloneNeovim
backupNeovimConfig
linkNeovimConfig
;;
N | n)
printf "%b\n" "${YELLOW}Installation complete.."
;;
*)
cloneNeovim
backupNeovimConfig
linkNeovimConfig
;;
esac
}

checkEnv
checkEscalationTool
installNeovim
printf "%b\n" "${GREEN}Do you also want to install the TitusDotfiles for neovim? (Y/n): ${RC}"
read -r _titusDots
case "$_titusDots" in
Y | y)
cloneNeovim
backupNeovimConfig
linkNeovimConfig
;;
N | n)
printf "%b\n" "${YELLOW}Installation complete.."
;;
*)
cloneNeovim
backupNeovimConfig
linkNeovimConfig
;;
esac
askToClone

0 comments on commit 6666dda

Please sign in to comment.