feat: Install Neovim from nightlies

This commit is contained in:
Michael Yockey
2025-09-22 10:29:58 -04:00
parent f8efc77d79
commit ea52d7097f
3 changed files with 41 additions and 1 deletions

View File

@@ -10,6 +10,9 @@ case `uname` in
echo "Installing dependencies from Homebrew"
brew install -q $(< ./dependencies/homebrew.txt)
echo "Installing Neovim nightly"
./scripts/upstall_neovim_macos.zsh
;;
Linux)
mkdir -p ~/.local/share

View File

@@ -0,0 +1,33 @@
#!/bin/zsh
# Determine OS and CPU architecture
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
if [[ "$OS" == "darwin" ]]; then
# macOS installation
nightly_url="https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-${ARCH}.tar.gz"
install_dir="~/opt"
mkdir -p "${install_dir/#\~/$HOME}"
echo "Downloading Neovim nightly for macOS ${ARCH}..."
curl -L "$nightly_url" | tar -xz -C "${install_dir/#\~/$HOME}"
echo "Neovim nightly installed to ${install_dir}/nvim-macos-${ARCH}"
elif [[ "$OS" == "linux" ]]; then
# Linux installation
nightly_url="https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage"
install_dir="~/.local/bin"
mkdir -p "${install_dir/#\~/$HOME}"
echo "Downloading Neovim nightly AppImage..."
curl -L "$nightly_url" -o "${install_dir/#\~/$HOME}/nvim"
chmod +x "${install_dir/#\~/$HOME}/nvim"
echo "Neovim nightly installed to ${install_dir}/nvim"
else
echo "Unsupported OS: $OS"
exit 1
fi

View File

@@ -71,9 +71,13 @@ done
source $HOME/.scripts/geometry/geometry.zsh
case `uname` in
Darwin)
# Neovim nightly
export PATH="$HOME/opt/nvim-macos-$(uname -m)/bin:$PATH"
;;
Linux)
export PATH=/home/myockey/.local/bin:$PATH
;;
;;
esac
. "$HOME/.atuin/bin/env"