From 47039ef5391b6455e74aab31f1d7b2e4eec84e16 Mon Sep 17 00:00:00 2001 From: vlnko Date: Mon, 2 Feb 2026 13:39:52 +0300 Subject: [PATCH] nvim upd --- nvim-install.sh | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/nvim-install.sh b/nvim-install.sh index e7f6312..9987260 100755 --- a/nvim-install.sh +++ b/nvim-install.sh @@ -1,39 +1,7 @@ #!/bin/bash -# Step 0. Detect the OS -if [[ "$OSTYPE" == "darwin"* ]]; then - OS="macos" -elif [[ -f /etc/os-release ]]; then - # shellcheck disable=SC1091 - . /etc/os-release - case "$ID" in - ubuntu|pop|linuxmint|zorin|elementary|kdeneon) - OS="ubuntu" - ;; - arch|manjaro|endeavouros|garuda|artix) - OS="arch" - ;; - *) - err "Unsupported Linux distribution: $ID" - exit 1 - ;; - esac -else - err "Cannot determine OS." - exit 1 -fi - -echo "🔎 Determined OS: $OS" - # Step 1: Install Neovim -if [[ $OS == "macos" ]]; then - brew install neovim -elif [[ $OS == "ubuntu" ]]; then - sudo apt install neovim -y -elif [[ $OS == "arch" ]]; then - sudo pacman -Sy --noconfirm neovim xclip wl-clipboard -fi - +sudo apt install neovim -y echo "✅ Neovim installed" # Step 2: Create the Neovim config directory