From ad53b375a2ccca898849f103d57ce424f2c0beeb Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 13 Jun 2023 09:20:49 -0700 Subject: [PATCH] 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. --- recipes/default/neovim_appimage | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 recipes/default/neovim_appimage diff --git a/recipes/default/neovim_appimage b/recipes/default/neovim_appimage new file mode 100755 index 0000000..59adc98 --- /dev/null +++ b/recipes/default/neovim_appimage @@ -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