17 lines
536 B
Lua
17 lines
536 B
Lua
local yanky = require("yanky")
|
|
yanky.setup({
|
|
ring = {
|
|
history_length = 100,
|
|
storage = "memory",
|
|
sync_with_numbered_registers = false,
|
|
cancel_event = "update",
|
|
},
|
|
})
|
|
|
|
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)")
|
|
|
|
vim.keymap.set("n", "<c-p>", "<Plug>(YankyCycleForward)")
|
|
vim.keymap.set("n", "<c-n>", "<Plug>(YankyCycleBackward)")
|