mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-02 13:34:28 +02:00
add: reconfig
This commit is contained in:
parent
3af64d720d
commit
1d2a590c80
66 changed files with 1547 additions and 5121 deletions
19
lua/plugins/yanky.lua
Normal file
19
lua/plugins/yanky.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
"gbprod/yanky.nvim",
|
||||
event = "BufReadPre",
|
||||
opts = {
|
||||
ring = {
|
||||
history_length = 50,
|
||||
storage = "memory",
|
||||
},
|
||||
preserve_cursor_position = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("yanky").setup(opts)
|
||||
-- cycle through the yank history, only work after paste
|
||||
vim.keymap.set("n", "[y", "<Plug>(YankyCycleForward)")
|
||||
vim.keymap.set("n", "]y", "<Plug>(YankyCycleBackward)")
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue