Replies: 3 comments 6 replies
-
Can Firenvim work with flatpak? The firenvim script that will be created in $XDG_DATA_HOME will directly reference the neovim binary which, if running flatpaks requires running |
Beta Was this translation helpful? Give feedback.
-
Indeed I found the script and the reference to the nvim binary |
Beta Was this translation helpful? Give feedback.
-
@glacambre Would that be acceptable to modify the if command -v nvim >/dev/null 2>/dev/null; then
FIRENVIM_NVIM_BINARY=nvim
elif command -v flatpak >/dev/null 2>/dev/null; then
FLATPAK_NVIM=$(flatpak list | grep -q 'neovim' | cut -f 2)
if [ -n "$FLATPAK_NVIM" ]; then
FIRENVIM_NVIM_BINARY="flatpak run --env=NVIM_APPNAME=$NVIM_APPNAME $FLATPAK_NVIM"
else
FIRENVIM_NVIM_BINARY=/usr/bin/nvim
fi
fi |
Beta Was this translation helpful? Give feedback.
-
I don't dare creating an issue so I am trying here first
from https://github.com/glacambre/firenvim/blob/master/TROUBLESHOOTING.md#make-sure-the-neovim-plugin-is-installed
This step won't for troubleshooting because XDG_DATA_HOME == ./var/app/io.neovim.nvim/data and is defined "inside" the flatpak so it's not available to the shell
But the following does print
true
:So I suggest telling people to open neovim (so we don't have to care about what flaour they are using) and tell to paste the following inside their nvim instance instead :
or something like that
What do you think ?
Beta Was this translation helpful? Give feedback.
All reactions