2022-10-07 10:25:36 +02:00
|
|
|
local yanky = require("yanky")
|
2022-10-11 15:53:25 +02:00
|
|
|
yanky.setup({
|
|
|
|
ring = {
|
|
|
|
history_length = 100,
|
|
|
|
storage = "memory",
|
|
|
|
sync_with_numbered_registers = false,
|
|
|
|
cancel_event = "update",
|
|
|
|
},
|
|
|
|
})
|
2022-10-07 10:25:36 +02:00
|
|
|
|
|
|
|
vim.keymap.set({ "n", "x" }, "p", "<Plug>(YankyPutAfter)")
|
|
|
|
vim.keymap.set({ "n", "x" }, "P", "<Plug>(YankyPutBefore)")
|
|
|
|
vim.keymap.set({ "n", "x" }, "gp", "<Plug>(YankyGPutAfter)")
|
|
|
|
vim.keymap.set({ "n", "x" }, "gP", "<Plug>(YankyGPutBefore)")
|
|
|
|
|
2022-10-07 10:29:49 +02:00
|
|
|
vim.keymap.set("n", "<c-p>", "<Plug>(YankyCycleForward)")
|
|
|
|
vim.keymap.set("n", "<c-n>", "<Plug>(YankyCycleBackward)")
|