Replies: 8 comments 14 replies
-
kitty @ requires either a TTY device or a socket. You need to get nvim
to run kitty @ connected to the tty device.
|
Beta Was this translation helpful? Give feedback.
-
I have found a way around to copy from neovim using this plugin: https://github.com/ojroques/vim-oscyank It's not quite a full solution, but at least it allows me to get text from neovim and paste in another window. |
Beta Was this translation helpful? Give feedback.
-
So I think I have finally solved this issue and figured what you meant by:
The discussion thread #3321 led me in the right direction, in particular @groves detailed answer. The link to the manual entry on the rc protocol made much more sense after reading his answer. Although there is a lot of overlap between both. I also found out that Neovim does not spawn programs invoked with the With that being said it's then surprising to me that Moving on to sockets. I figure that I could modify the plugins that involved kitty and were not working remotely by using a socket. First, I bound a remote socket to the kitty socket in the local machine by invoking ssh with |
Beta Was this translation helpful? Give feedback.
-
Do
kitty -o allow_remote_control=socket-only -o listen_on=unix:/tmp/mykitty
then in kitty do,
kitten ssh localhost
then inside the ssh prompt
run
kitten @ ls
if you get output, ssh forwarding is working. Verify with
env | grep KITTY
you should see KITTY_LISTEN_ON env var set.
Now repeat with remote host instead of localhost.
Once you verify that forwarding is working, you can proceed to debug
neovim+plugins. Cant help you with that.
|
Beta Was this translation helpful? Give feedback.
-
Then your remote machine has probably disabled ssh port forwarding in
its sshd config.
|
Beta Was this translation helpful? Give feedback.
-
No, kitty is not used anymore on remote machines. kitten does it all.
In this case even kitten is used only on the local computer not the
remote one. Port forwarding is done by ssh and the env var is set by
the bootstrap shell script.
|
Beta Was this translation helpful? Give feedback.
-
On Mon, Jun 24, 2024 at 08:12:28AM -0700, Ani Aggarwal wrote:
Got it. It seems like the port is be allocated correctly, so I'm not sure what's going wrong or why the KITTY_LISTEN_ON variable isn't set. Perhaps this is the issue then?
Most likely something in the remote server environment is resetting env
vars. Try using a empty shell rc file or a different shell.
|
Beta Was this translation helpful? Give feedback.
-
If the env var is set and kitten @ is working then port forwarding is
working. User vars dont have anything to do with port forwarding, they
are set via escape codes on the tty itself.
|
Beta Was this translation helpful? Give feedback.
-
I am accessing a server using ssh with:
I log into the server, all kitty commands work.
I start
nvim
and attempt:which raises:
Similarly, attempting to run the following command:
raises:
Any ideas on how to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions