From acc5f9f075be68fbd0c2dcfd4c36002f5b02360e Mon Sep 17 00:00:00 2001 From: piecka Date: Fri, 28 Feb 2025 10:18:09 +0100 Subject: [PATCH] addet nvim check to the begin --- installs/neovim.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installs/neovim.sh b/installs/neovim.sh index 5fff9ce..0972dae 100755 --- a/installs/neovim.sh +++ b/installs/neovim.sh @@ -169,6 +169,12 @@ # ─< Main function >───────────────────────────────────────────────────────────────── main() { + if command_exists nvim; then + echo_warning "Neovim is already installed in version: $(nvim --version)" + echo_error "Exiting now!" + exit 0 + fi + echo_info "Starting Neovim installation script..." get_packager if command -v nvim >/dev/null 2>&1; then