feat(nvim): add registers.nvim

This commit is contained in:
2026-02-24 16:50:17 +08:00
parent 9daf46b125
commit b1c22ae65e
@@ -257,6 +257,7 @@ local plugins = {
dependencies = { "tpope/vim-repeat" },
config = function()
vim.keymap.set({ "n", "x", "o" }, "s", "<Plug>(leap)")
vim.keymap.set({ "n", "x", "o" }, "<leader>s", "<Plug>(leap)")
vim.keymap.set("n", "S", "<Plug>(leap-from-window)")
-- Exclude whitespace and the middle of alphabetic words from preview:
-- foobar[baaz] = quux
@@ -333,6 +334,17 @@ local plugins = {
event = "VeryLazy",
opts = {},
},
{
"tversteeg/registers.nvim",
cmd = "Registers",
config = true,
keys = {
{ '"', mode = { "n", "v" } },
{ "<C-R>", mode = "i" },
},
name = "registers",
},
}
require("lazy").setup(plugins, {})