Skip to content

Commit 4a78655

Browse files
committed
feat: add OSC 52 clipboard support to Neovim config
1 parent 19c7a67 commit 4a78655

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.config/nvim/lua/config/opts.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ end
8282
vim.opt.hidden = true
8383
vim.opt.mouse = "a"
8484
vim.opt.clipboard:append("unnamedplus")
85+
vim.g.clipboard = {
86+
name = "OSC 52",
87+
copy = {
88+
["+"] = require("vim.ui.clipboard.osc52").copy("+"),
89+
["*"] = require("vim.ui.clipboard.osc52").copy("*"),
90+
},
91+
paste = {
92+
["+"] = require("vim.ui.clipboard.osc52").paste("+"),
93+
["*"] = require("vim.ui.clipboard.osc52").paste("*"),
94+
},
95+
}
8596
vim.opt.errorbells = false
8697

8798
-- paths

0 commit comments

Comments
 (0)