mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update config for yanky
This commit is contained in:
parent
a3c8b3d5b5
commit
21522bd194
@ -1,13 +1,17 @@
|
|||||||
require("yanky").setup({
|
require("yanky").setup {
|
||||||
ring = {
|
|
||||||
history_length = 50,
|
|
||||||
storage = "memory",
|
|
||||||
},
|
|
||||||
preserve_cursor_position = {
|
preserve_cursor_position = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
},
|
},
|
||||||
})
|
highlight = {
|
||||||
|
on_put = true,
|
||||||
|
on_yank = false,
|
||||||
|
timer = 300,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.keymap.set({ "n", "x" }, "p", "<Plug>(YankyPutAfter)")
|
||||||
|
vim.keymap.set({ "n", "x" }, "P", "<Plug>(YankyPutBefore)")
|
||||||
|
|
||||||
-- cycle through the yank history, only work after paste
|
-- cycle through the yank history, only work after paste
|
||||||
vim.keymap.set("n", "[y", "<Plug>(YankyCycleForward)")
|
vim.keymap.set("n", "[y", "<Plug>(YankyPreviousEntry)")
|
||||||
vim.keymap.set("n", "]y", "<Plug>(YankyCycleBackward)")
|
vim.keymap.set("n", "]y", "<Plug>(YankyNextEntry)")
|
||||||
|
|||||||
@ -293,10 +293,10 @@ local plugin_specs = {
|
|||||||
-- Manage your yank history
|
-- Manage your yank history
|
||||||
{
|
{
|
||||||
"gbprod/yanky.nvim",
|
"gbprod/yanky.nvim",
|
||||||
cmd = { "YankyRingHistory" },
|
|
||||||
config = function()
|
config = function()
|
||||||
require("config.yanky")
|
require("config.yanky")
|
||||||
end,
|
end,
|
||||||
|
event = "VeryLazy",
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Handy unix command inside Vim (Rename, Move etc.)
|
-- Handy unix command inside Vim (Rename, Move etc.)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user