mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-30 04:24:26 +02:00
Add files via upload
This commit is contained in:
commit
e53a643e3d
54 changed files with 5285 additions and 0 deletions
17
lua/user/yanky.lua
Normal file
17
lua/user/yanky.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
local status_ok, yanky = pcall(require, "yanky")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
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)")
|
Loading…
Add table
Add a link
Reference in a new issue