shoestrap/recipes/default/neovim_appimage
ViViDboarder ad53b375a2 Add recipe for installing latest Neovim from appimage
This will download and add the latest Neovim appimage to the user bin dir,
or, if appimage can't be run, will extract the filesystem and add it to
~/.local paths.
2023-06-13 09:20:49 -07:00

16 lines
367 B
Bash
Executable File

#! /bin/bash
set -e
cd "$TMP"
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod +x nvim.appimage
if ./nvim.appimage --version ;then
mv nvim.appimage ~/bin/nvim
else
./nvim.appimage --appimage-extract
mv ./squashfs-root ~/.local/lib/neovim_squashfs
ln -s ~/.local/lib/neovim_squashfs/AppRun ~/.local/bin/nvim
fi