-- Yanky is enabled via LazyVim's `coding.yanky` extra. Its default -- `system_clipboard.sync_with_ring = true` reads the `+` register on every yank. -- Over SSH/herdr the clipboard provider is copy-only OSC 52 (see -- config/options.lua), so a ring<->clipboard sync is pointless and historically -- threw when OSC 52 reads were attempted. Disable it on remote sessions only; -- keep full sync locally where wl-copy/pbcopy make reads cheap and useful. return { "gbprod/yanky.nvim", opts = { system_clipboard = { sync_with_ring = vim.env.SSH_CONNECTION == nil, }, }, }