yanky should stick to ram

This commit is contained in:
Daniel Lundin 2022-10-11 15:53:25 +02:00
parent d725563605
commit 39fcc822bf

View file

@ -1,5 +1,12 @@
local yanky = require("yanky")
yanky.setup({})
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)")