From 39fcc822bf1180c6e5a78d4d2183bb0a6b622b0a Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Tue, 11 Oct 2022 15:53:25 +0200 Subject: [PATCH] yanky should stick to ram --- .config/nvim/lua/plugins/yanky.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/yanky.lua b/.config/nvim/lua/plugins/yanky.lua index d864186..12516f7 100644 --- a/.config/nvim/lua/plugins/yanky.lua +++ b/.config/nvim/lua/plugins/yanky.lua @@ -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", "(YankyPutAfter)") vim.keymap.set({ "n", "x" }, "P", "(YankyPutBefore)")