Update .config/nvim/lua/config/20_keymaps.lua Update .config/nvim/lua/plugin/03_treesitter.lua Update .config/nvim/lua/plugin/05_fzf.lua Update .config/nvim/lua/plugin/10_hop.lua Update .config/nvim/lua/plugin/35_yanky.lua
19 lines
838 B
Lua
19 lines
838 B
Lua
return {
|
|
{
|
|
"gbprod/yanky.nvim",
|
|
-- stylua: ignore
|
|
keys = {
|
|
{ "y", "<Plug>(YankyYank)", desc = "yank" },
|
|
{ "p", "<Plug>(YankyPutAfter)", mode = { "n", "x" }, desc = "put after" },
|
|
{ "P", "<Plug>(YankyPutBefore)", mode = { "n", "x" }, desc = "put before" },
|
|
{ "[p", "<Plug>(YankyPutIndentBeforeLinewise)", mode = { "n", "x" }, desc = "put after line" },
|
|
{ "]p", "<Plug>(YankyPutIndentAfterLinewise)", mode = { "n", "x" }, desc = "put before line" },
|
|
{ "<c-p>", "<Plug>(YankyPreviousEntry)", mode = "n", desc = "previous yank" },
|
|
{ "<c-n>", "<Plug>(YankyNextEntry)", mode = "n", desc = "next yank" },
|
|
{ "<leader>fy", "<Cmd>YankyRingHistory<CR>", mode = { "n", "x" }, desc = "yank history" },
|
|
},
|
|
opts = {
|
|
preserve_cursor_position = { enabled = true },
|
|
},
|
|
},
|
|
}
|