Closed sr66139p closed 5 months ago
As a workaround, use this as your .zshrc:
nv() {
if [ -z "$1" ]; then
flatpak run io.neovim.nvim
elif [ "$1" = "s" ]; then
flatpak run io.neovim.nvim "${HOME}/.var/app/io.neovim.nvim/config"
else
flatpak run io.neovim.nvim "$@"
fi
}
Replace the nv
function name with the "alias" name you want to.
It works perfectly! Thank you so much for the swift response
Even though I can pass files to NeoVim and they open, I don't get auto completion or suggestions with my alias or the full command (see below). My alias is
alias vi='flatpak run io.neovim.nvim'
and I use Zsh with Alacritty, if that helps. To be clear, autocomplete within NeoVim works, just not when launching it from my terminal. I have also tried with parenthesis instead of ticks, but that does not work. This issue does not affect upstream (see below). Has anyone figured out a better solution?