EtiamNullam / deferred-clipboard.nvim

Keep clipboard in sync with Neovim without the peformance hit.
77 stars 2 forks source link

running shell: exit status 134 #6

Open MichaelC001 opened 10 months ago

MichaelC001 commented 10 months ago

CleanShot_2023_12_17_135003

This plugin is great, I use it to sync Neovim register and system clipboard even over SSH, and it works perfectly. but I have a little problem with it

I use LF file manager in a terminal. every time I finish editing a text file with Neovim, it says "running shell: exit status 134" I'm pretty sure this is caused by deferred-clipboard.nvim How to hide this annoying message?

EtiamNullam commented 10 months ago

Thank you, I'm glad the plugin is helpful for you.

The issue might be related to the problem in the core, when hooking up to VimLeave or VimLeavePre - which I do in this plugin:

https://github.com/neovim/neovim/issues/21856

Is the message about the exit code displayed every single time?

You might try branch fix/prevent-exitcode-134 to see if it will fix the problem. Seems like you're using lazy.nvim, so I believe adding this will work for you:

branch = 'fix/prevent-exitcode-134',

I will also link here the related issue you've raised on your file manager's repository:

https://github.com/gokcehan/lf/issues/1550

MichaelC001 commented 10 months ago

c1004468-290e-4c29-90a4-8d9ddcfc08f3 I am new to Neovim, I am not sure if I switch branch ccorrectly. With the config above: "running shell: exit status", error message no longer shown. copy and paste in tmux, works good locally, not work in SSH. Thank you.

EtiamNullam commented 10 months ago

Thank you for the information. Yes, I believe you've switched it properly. You can also run :Lazy update deferred-clipboard.nvim to be sure.

This will probably be fixed at some point in the neovim's core, but let's find a good workaround for now and put it as an configuration option. I will prepare another branch for you to test with a slightly different solution.

I will let you know when the branch with an alternative solution is ready.