Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --server option to connect to specific nvim session? #4

Open
shaform opened this issue Jan 2, 2019 · 4 comments
Open

Add --server option to connect to specific nvim session? #4

shaform opened this issue Jan 2, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@shaform
Copy link

shaform commented Jan 2, 2019

nvim-qt has an option to attach to existing nvim sessions: https://github.com/equalsraf/neovim-qt/wiki/Remote-attachment

This enables us to use nvim-qt to attach to nvim running on remote servers via ssh, which is really useful. In this way, we are no longer being restricted to work on text-based terminals when connecting to remote servers.

I've inspected several other GUI alternatives for neovim, but it seems that nvim-qt is the only one that supports this currently. However, I don't quite like the current UI interfarce of nvim-qt.

I am wondering if gnvim would supports this? This would be really helpful since I am required to work on remote machines most of the time.

Thanks!

@vhakulinen
Copy link
Owner

This is something that can be implemented and neovim-lib (the library gnvim is using to communicate with nvim) even shows how to do it on its first documentation page: https://docs.rs/neovim-lib/0.5.4/neovim_lib/#examples.

@vhakulinen vhakulinen added the enhancement New feature or request label Jan 3, 2019
@shaform
Copy link
Author

shaform commented Jan 3, 2019

That's good news! But one thing to notice is that as more features are added, full support for remote mode would become more complicated. See daa84/neovim-gtk#21.

@vhakulinen
Copy link
Owner

Those are good points. Only problem we're facing is the runtime files, which applies for neovim-gtk too. If we ever decide to implement a GUI file browser for example, it shouldn't bypass nvim.

For runtime files, we could read the runtime file(s) (at least the essential ones) on startup and inject them to nvim before attaching the UI.

@smolck
Copy link
Contributor

smolck commented Oct 23, 2019

Once this Neovim PR is merged, would GNvim be able to connect to a remote session via
gnvim -- --connect <host>:<port>?

EDIT: Fixed example command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants