Replies: 3 comments 4 replies
-
I also encountered this problem with Windows Terminal. |
Beta Was this translation helpful? Give feedback.
-
The example in my recent issue might help you (by completing disabling pasting to + and *): #28611 |
Beta Was this translation helpful? Give feedback.
-
try this: vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank()
local copy_to_unnamedplus = require('vim.ui.clipboard.osc52').copy('+')
copy_to_unnamedplus(vim.v.event.regcontents)
local copy_to_unnamed = require('vim.ui.clipboard.osc52').copy('*')
copy_to_unnamed(vim.v.event.regcontents)
end
}) while keeping your |
Beta Was this translation helpful? Give feedback.
-
Problem
With terminals I use (wezterm/alacritty) the new osc52 clipboard feature works as expected for copy but not for paste operation.
For instance wezterm does not seem to allow reading the clipboard wez/wezterm/issues/2050
When I try to paste eg pressing
p
nvim become unresponsive, freeze during ~10seconds with the following message "Waiting for OSC 52 response from the terminal. Press Ctrl-C to interrupt…".Finally, after this 10s timeouts or pressing ctrlC, the previously yanked text is pasted.
There is a way to set
g.clipboard
to enable osc52 for copy only, and keep whatever is nvim's default for paste?I tried this but it's not working, I lose the osc52 feature
Steps to reproduce
nvim --clean -u mini.lua
y
then pastep
Expected behavior
Should past the yanked text instant and do not freeze 10s with "Waiting for OSC 52 response from the terminal. Press Ctrl-C to interrupt..." message
Neovim version (nvim -v)
NVIM v0.10.0-dev-2682+g011585f35f RelWithDebInfo LuaJIT 2.1.1702233742
Vim (not Nvim) behaves the same?
Operating system/version
archlinux 6.8.1-arch1-1
Terminal name/version
Installation
aur neovim-git
Beta Was this translation helpful? Give feedback.
All reactions