flathub / io.neovim.nvim

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

Better integration with the terminal #32

Closed CleoMenezesJr closed 2 years ago

CleoMenezesJr commented 2 years ago

It looks like the terminal opens something like flatpak run --command=bash io.neovim.nvim and integration with the terminal looks like I'm inside the editor, plus it doesn't recognize my shell which is zsh.

https://user-images.githubusercontent.com/54215258/145158127-954f4cf2-48b1-4457-a40b-ffd74f39e813.mp4

jurf commented 2 years ago

Well, it opens the default shell inside the sandbox. I would say that is what is expected for a Flatpak.

CleoMenezesJr commented 2 years ago

The default shell is ZSH and I remember in vscode flatpak you can integrate the shell via flatpak-spawn or something. That's why I opened this ticket.

yvesnrb commented 2 years ago

@CleoMenezes Try opening a terminal buffer using :term flatpak-spawn --host bash. That should give you your host's bash. I suppose we could add that to the first run warning.

CleoMenezesJr commented 2 years ago

:term flatpak-spawn --host --env=TERM="$TERM" zsh works, but it looks like an editor inside the terminal. lol image

jurf commented 2 years ago

Is not that how it is supposed to look? Anyway, if you find a workflow that suits your needs, you can add it to neovim-first-run.txt so that others can benefit.

If someone is having trouble getting this to work, I had to run Neovim with

flatpak run --talk-name=org.freedesktop.Flatpak io.neovim.nvim

We can add this as default if it proves useful.

gmankab commented 1 year ago

We can add this as default if it proves useful.

yes, please do it