This commit is contained in:
2025-08-13 21:46:48 +02:00
commit c3e2e6509b
818 changed files with 54187 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
return {
{ import = "lazyvim.plugins.extras.coding.yanky" },
{
"gbprod/yanky.nvim",
opts = function(_, opts)
opts.highlight = { timer = 250 }
if LazyVim.has("telescope.nvim") then
local utils = require("yanky.utils")
local mapping = require("yanky.telescope.mapping")
opts.picker = {
telescope = {
use_default_mappings = false,
mappings = {
default = mapping.put("p"),
i = {
["<c-g>"] = mapping.put("p"),
["<c-h>"] = mapping.put("P"),
["<c-x>"] = mapping.delete(),
["<c-r>"] = mapping.set_register(utils.get_default_register()),
},
n = {
p = mapping.put("p"),
P = mapping.put("P"),
d = mapping.delete(),
r = mapping.set_register(utils.get_default_register()),
},
},
},
}
end
end,
keys = {
{
"<leader>sy",
function()
vim.cmd([[YankyRingHistory]])
end,
mode = { "n", "v" },
desc = "Yank History",
},
{ "<leader>p", mode = { "n", "x" }, false },
},
},
}