diff options
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/yanky.lua | 13 |
1 files changed, 13 insertions, 0 deletions
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", "<Plug>(YankyCycleForward)") +vim.keymap.set("n", "]y", "<Plug>(YankyCycleBackward)") |
