fix: addet the feature to autodiscover the version?

This commit is contained in:
pika 2025-03-17 19:00:46 +01:00
parent 6e14d94618
commit 0983afe723

View file

@ -112,8 +112,11 @@
mkdir "$HOME/.bin"
fi
echo_info "Downloading neovim tar.."
curl -fsSL -o "$tempdir/nvim.tar.gz" https://github.com/neovim/neovim/releases/download/v0.10.2/nvim-linux64.tar.gz && cd "$tempdir"
echo_info "Fetching latest stable Neovim version..."
latest_version=$(curl -s https://api.github.com/repos/neovim/neovim/releases/latest | grep 'tag_name' | cut -d\" -f4)
echo_info "Downloading Neovim version $latest_version..."
curl -fsSL -o "$tempdir/nvim.tar.gz" "https://github.com/neovim/neovim/releases/download/${latest_version}/nvim-linux64.tar.gz" && cd "$tempdir"
tar -xf nvim.tar.gz
cp -r ./nvim-linux64 "$HOME/.bin"