fix nvim download url for v0.10+ rename

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Paul Trowbridge 2026-05-10 03:32:22 -04:00
parent 226cdd64c6
commit 6b12390fc5
2 changed files with 13 additions and 10 deletions

View File

@ -3,7 +3,7 @@
# When a tool (cargo, nvm, conda, etc.) appends lines to .bashrc, move them here instead. # When a tool (cargo, nvm, conda, etc.) appends lines to .bashrc, move them here instead.
# Neovim (installed by install_neovim.sh) # Neovim (installed by install_neovim.sh)
# [ -d /opt/nvim-linux64/bin ] && export PATH="/opt/nvim-linux64/bin:$PATH" # [ -d /opt/nvim-linux-x86_64/bin ] && export PATH="/opt/nvim-linux-x86_64/bin:$PATH"
# Lua language server # Lua language server
# export PATH="$PATH:$HOME/lua-language-server/bin" # export PATH="$PATH:$HOME/lua-language-server/bin"

View File

@ -8,8 +8,8 @@ echo ""
echo "This script will run the following commands with sudo:" echo "This script will run the following commands with sudo:"
echo " - apt-get update (if curl not installed)" echo " - apt-get update (if curl not installed)"
echo " - apt-get install -y curl (if needed)" echo " - apt-get install -y curl (if needed)"
echo " - rm -rf /opt/nvim-linux64 (if old installation exists)" echo " - rm -rf /opt/nvim-linux64 or /opt/nvim-linux-x86_64 (if old installation exists)"
echo " - tar -C /opt -xzf nvim-linux64.tar.gz" echo " - tar -C /opt -xzf nvim-linux-x86_64.tar.gz"
echo "" echo ""
read -p "Continue with installation? (y/N) " -n 1 -r read -p "Continue with installation? (y/N) " -n 1 -r
echo echo
@ -39,7 +39,7 @@ echo "Downloading Neovim..."
TEMP_DIR=$(mktemp -d) TEMP_DIR=$(mktemp -d)
cd "$TEMP_DIR" cd "$TEMP_DIR"
if ! curl -fsSL -o nvim-linux64.tar.gz https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz; then if ! curl -fsSL -o nvim-linux-x86_64.tar.gz https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz; then
echo "Error: Failed to download Neovim" >&2 echo "Error: Failed to download Neovim" >&2
rm -rf "$TEMP_DIR" rm -rf "$TEMP_DIR"
exit 1 exit 1
@ -48,13 +48,16 @@ fi
echo "Download complete." echo "Download complete."
set -x set -x
# Remove old installation if it exists # Remove old installation if it exists (either naming convention)
if [ -d /opt/nvim-linux64 ]; then if [ -d /opt/nvim-linux64 ]; then
sudo rm -rf /opt/nvim-linux64 sudo rm -rf /opt/nvim-linux64
fi fi
if [ -d /opt/nvim-linux-x86_64 ]; then
sudo rm -rf /opt/nvim-linux-x86_64
fi
# Extract to /opt # Extract to /opt
sudo tar -C /opt -xzf nvim-linux64.tar.gz sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
set +x set +x
@ -65,13 +68,13 @@ rm -rf "$TEMP_DIR"
echo "" echo ""
echo "============================================" echo "============================================"
# Verify installation # Verify installation
if [ -x /opt/nvim-linux64/bin/nvim ]; then if [ -x /opt/nvim-linux-x86_64/bin/nvim ]; then
echo "Neovim installed successfully!" echo "Neovim installed successfully!"
/opt/nvim-linux64/bin/nvim --version | head -n1 /opt/nvim-linux-x86_64/bin/nvim --version | head -n1
echo "" echo ""
echo "Neovim is installed at: /opt/nvim-linux64/bin/nvim" echo "Neovim is installed at: /opt/nvim-linux-x86_64/bin/nvim"
echo "Add to PATH by adding this to your ~/.bashrc:" echo "Add to PATH by adding this to your ~/.bashrc:"
echo ' export PATH="$PATH:/opt/nvim-linux64/bin"' echo ' export PATH="$PATH:/opt/nvim-linux-x86_64/bin"'
else else
echo "Error: Neovim installation failed" >&2 echo "Error: Neovim installation failed" >&2
exit 1 exit 1