update: added osc52 toggle to nvim & added yadm readd

This commit is contained in:
2026-02-21 10:03:35 +03:00
parent 4f0a293fbb
commit 1dea8c1a69
4 changed files with 46 additions and 15 deletions
-15
View File
@@ -1,19 +1,4 @@
vim.opt.clipboard = "unnamedplus"
vim.g.clipboard = {
name = "osc 52",
copy = {
["+"] = require("vim.ui.clipboard.osc52").copy("+"),
["*"] = require("vim.ui.clipboard.osc52").copy("*"),
},
paste = {
["+"] = function()
return { vim.fn.split(vim.fn.getreg(""), "\n"), vim.fn.getregtype("") }
end,
["*"] = function()
return { vim.fn.split(vim.fn.getreg(""), "\n"), vim.fn.getregtype("") }
end,
},
}
vim.opt.fixeol = true