Update .config/nvim/lua/plugin/00_colorscheme.lua Update .config/nvim/lua/plugin/10_hop.lua Update .config/nvim/lua/plugin/20_completion.lua Add .config/nvim/lua/plugin/35_yanky.lua
21 lines
826 B
Lua
21 lines
826 B
Lua
return {
|
|
{
|
|
"gbprod/yanky.nvim",
|
|
keys = {
|
|
{ "y", "<Plug>(YankyYank)" },
|
|
{ "p", "<Plug>(YankyPutAfter)", mode = { "n", "x" } },
|
|
{ "P", "<Plug>(YankyPutBefore)", mode = { "n", "x" } },
|
|
{ "[p", "<Plug>(YankyPutIndentBeforeLinewise)", mode = "n" },
|
|
{ "]p", "<Plug>(YankyPutIndentAfterLinewise)", mode = "n" },
|
|
{ ">p", "<Plug>(YankyPutIndentAfterShiftRight)", mode = "n" },
|
|
{ ">P", "<Plug>(YankyPutIndentBeforeShiftRight)", mode = "n" },
|
|
{ "<p", "<Plug>(YankyPutIndentAfterShiftLeft)", mode = "n" },
|
|
{ "<P", "<Plug>(YankyPutIndentBeforeShiftLeft)", mode = "n" },
|
|
{ "<c-p>", "<Plug>(YankyPreviousEntry)", mode = "n" },
|
|
{ "<c-n>", "<Plug>(YankyNextEntry)", mode = "n" },
|
|
},
|
|
opts = {
|
|
preserve_cursor_position = { enabled = true },
|
|
},
|
|
},
|
|
}
|