flathub / io.neovim.nvim

https://flathub.org/apps/details/io.neovim.nvim
15 stars 15 forks source link

Terminal completion? #73

Closed sr66139p closed 5 months ago

sr66139p commented 6 months ago

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). image image 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). image Has anyone figured out a better solution?

CleoMenezesJr commented 6 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.

image

sr66139p commented 6 months ago

It works perfectly! Thank you so much for the swift response