feat: add system clipboard copy via osc52 codes

This commit is contained in:
Matej Janezic 2025-10-11 18:51:17 +02:00
parent b03e50f630
commit f36177b126
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 14 additions and 0 deletions

View File

@ -32,6 +32,20 @@ vim.o.expandtab = true
vim.o.ignorecase = true
vim.o.smartcase = true
-- osc52 escape codes copy
vim.g.clipboard = {
name = "osc52-writeonly",
copy = {
["+"] = require("vim.ui.clipboard.osc52").copy("+"),
},
paste = {
["+"] = function()
vim.notify("can't paste via osc52", vim.log.levels.WARN)
return {}
end,
},
}
vim.o.completeopt = "menuone,noselect,fuzzy,nosort"
-- default plus added dash