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

No --server option #107

Open
xelra opened this issue Dec 13, 2016 · 3 comments
Open

No --server option #107

xelra opened this issue Dec 13, 2016 · 3 comments

Comments

@xelra
Copy link

xelra commented Dec 13, 2016

I'd like to connect to a remote Neovim session. Similar to how it's done in Neovim-Qt, I tried nyaovim --server <tcpSocket>, but there doesn't seem to be a --server option. Can NyaoVim connect to a remote Neovim? If not, I'd like to request that feature.

@justinmk
Copy link

nvr provides this. Also, starting with NVIM_LISTEN_ADDRESS environment variable, should work.

@xelra
Copy link
Author

xelra commented Dec 13, 2016

It is unclear to me how nvr is going to do this for NyaoVim. From what I read on the project page, nvr is a tool for controlling Neovim from cli and scripts.

I understand the NVIM_LISTEN_ADDRESS approach though. Thanks.

I'll simply create a nvim process on the server and bind it to a specific unix socket. Then I will run NyaoVim on my local machine and also bind it to a specific unix socket with NVIM_LISTEN_ADDRESS. Then I use ssh -L local_socket:remote_socket to connect both sockets.

@xelra
Copy link
Author

xelra commented Dec 14, 2016

After spending the evening on getting this to work with NVIM_LISTEN_ADDRESS, I can say it doesn't work.

I can create the listening server process and the ssh socket forward, but the only way I can connect from my local machine is with nvim-qt --server [email protected].

Connecting to the server was not possible with either NVIM_LISTEN_ADDRESS=/tmp/nvim.socket nvim or NVIM_LISTEN_ADDRESS=/tmp/nvim.socket nyaovim.

So as far as I can see, the --server option seems to be a necessity.

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

No branches or pull requests

2 participants