2023-10-09 09:32:49 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# In case we are on SteamOS?
|
|
|
|
#set -x
|
|
|
|
# The usual system-wide installation
|
|
|
|
if [ -f /usr/bin/nvim ]; then
|
2024-03-20 05:50:18 +01:00
|
|
|
/usr/bin/nvim "$@"
|
2023-10-09 09:32:49 +02:00
|
|
|
# System-wide flatpak
|
|
|
|
elif [ -f /var/lib/flatpak/exports/bin/io.neovim.nvim ]; then
|
2024-03-20 05:50:18 +01:00
|
|
|
flatpak run io.neovim.nvim "$@"
|
2023-10-09 09:32:49 +02:00
|
|
|
# User-specific flatpak
|
|
|
|
elif [ -f ~/.local/share/flatpak/exports/bin/io.neovim.nvim ]; then
|
2024-03-20 05:50:18 +01:00
|
|
|
flatpak run --user io.neovim.nvim "$@"
|
2023-10-09 09:32:49 +02:00
|
|
|
# If not found.
|
|
|
|
else
|
|
|
|
printf "nvim doesn't seem to be installed :("
|
|
|
|
fi
|
|
|
|
#set +x
|