From 7e7944a30c340319665582cf635aed7678b8a353 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 14 Dec 2022 12:52:40 +0800 Subject: use yanky.nvim to replace vim-yoink (#168) --- lua/config/yanky.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lua/config/yanky.lua (limited to 'lua/config') diff --git a/lua/config/yanky.lua b/lua/config/yanky.lua new file mode 100644 index 0000000..0f8eceb --- /dev/null +++ b/lua/config/yanky.lua @@ -0,0 +1,13 @@ +require("yanky").setup({ + ring = { + history_length = 50, + storage = "memory", + }, + preserve_cursor_position = { + enabled = false, + }, +}) + +-- cycle through the yank history, only work after paste +vim.keymap.set("n", "[y", "(YankyCycleForward)") +vim.keymap.set("n", "]y", "(YankyCycleBackward)") -- cgit v1.2.3