From 73c57e627de9b5601ca5f9427e7ef49bf40f9282 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Wed, 9 Nov 2022 10:44:37 -0500 Subject: [PATCH] Select correct nvim implementation Dynamically detect if flatpak is installed. If not use native binary. --- nvim.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 nvim.sh diff --git a/nvim.sh b/nvim.sh new file mode 100644 index 0000000..22e1e4b --- /dev/null +++ b/nvim.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "`which flatpak`" ]; then + flatpak run io.neovim.nvim $@ 2>/dev/null +else + nvim $@ +fi