Using the flatpak version of neovim

As neovim is in active development with new features are added regularly, using an LTS Linux version means a long wait for the new features. For example ATOW Pop_OS! (based on Ubuntu 22.04) package manager provides version 0.6.1. Even Ubuntu 24.04 provides 0.9.5. Looking at the neovim.io they have an official flatpak version of the latest stable version – If you already have flatpak installed (it comes pre installed on Pop_OS!) this is simply installed using:

flatpak install io.neovim.nvim

And you can run it using

flatpak run io.neovim.nvim

If all you want to do it run it from the command line then you can create a link to the exported flatpak as follows (assuming the path ~/bin/ is in your path):

ln -s ~/.local/share/flatpak/exports/bin/io.neovim.nvim  ~/bin/nvim

If you installed the flatpak as root (not recommended) the command is:

ln -s /var/lib/flatpak/exports/bin/io.neovim.nvim /usr/bin/nvim

One caveat is that the flatpak version it cannot currently be used with sudo unless it has been installed in the root user’s workspace. flatpak’s are per user. Even installing using “sudo flatpak install io.neovim.nvim” will not work