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.
This commit is contained in:
ViViDboarder 2023-06-13 09:20:49 -07:00
parent 50b03824f2
commit ad53b375a2

15
recipes/default/neovim_appimage Executable file
View File

@ -0,0 +1,15 @@
#! /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