Select correct nvim implementation

Dynamically detect if flatpak is installed. If not use native binary.
This commit is contained in:
John Mertz 2022-11-09 10:44:37 -05:00
parent 006e009eea
commit 73c57e627d
1 changed files with 7 additions and 0 deletions

7
nvim.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if [ "`which flatpak`" ]; then
flatpak run io.neovim.nvim $@ 2>/dev/null
else
nvim $@
fi