mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
14 lines
319 B
Lua
14 lines
319 B
Lua
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)")
|