Skip to content

Commit b3e6eab

Browse files
author
Venkata Subramani Renduchintala
committed
fix(clipboard): remove --foreground from wl-copy to prevent yank hang
--foreground keeps wl-copy alive until another client claims the clipboard, blocking neovim on every yank. Dropping it lets wl-copy daemonize and return immediately.
1 parent 083a54a commit b3e6eab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/settings.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ if vim.fn.has("unix") == 1 and vim.fn.executable("wl-copy") == 1 and vim.env.WAY
44
vim.g.clipboard = {
55
name = "wl-clipboard",
66
copy = {
7-
["+"] = { "wl-copy", "--foreground", "--type", "text/plain" },
8-
["*"] = { "wl-copy", "--foreground", "--primary", "--type", "text/plain" },
7+
["+"] = { "wl-copy", "--type", "text/plain" },
8+
["*"] = { "wl-copy", "--primary", "--type", "text/plain" },
99
},
1010
paste = {
1111
["+"] = { "wl-paste", "--no-newline" },

0 commit comments

Comments
 (0)