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", "(YankyPutAfter)") vim.keymap.set({ "n", "x" }, "P", "(YankyPutBefore)") vim.keymap.set({ "n", "x" }, "gp", "(YankyGPutAfter)") vim.keymap.set({ "n", "x" }, "gP", "(YankyGPutBefore)") vim.keymap.set("n", "", "(YankyCycleForward)") vim.keymap.set("n", "", "(YankyCycleBackward)")