Open xelra opened 7 years ago
nvr provides this. Also, starting with NVIM_LISTEN_ADDRESS
environment variable, should work.
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.
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 user@1.2.3.4
.
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.
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.