feat(nvim): add registers.nvim
This commit is contained in:
@@ -257,6 +257,7 @@ local plugins = {
|
|||||||
dependencies = { "tpope/vim-repeat" },
|
dependencies = { "tpope/vim-repeat" },
|
||||||
config = function()
|
config = function()
|
||||||
vim.keymap.set({ "n", "x", "o" }, "s", "<Plug>(leap)")
|
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)")
|
vim.keymap.set("n", "S", "<Plug>(leap-from-window)")
|
||||||
-- Exclude whitespace and the middle of alphabetic words from preview:
|
-- Exclude whitespace and the middle of alphabetic words from preview:
|
||||||
-- foobar[baaz] = quux
|
-- foobar[baaz] = quux
|
||||||
@@ -333,6 +334,17 @@ local plugins = {
|
|||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"tversteeg/registers.nvim",
|
||||||
|
cmd = "Registers",
|
||||||
|
config = true,
|
||||||
|
keys = {
|
||||||
|
{ '"', mode = { "n", "v" } },
|
||||||
|
{ "<C-R>", mode = "i" },
|
||||||
|
},
|
||||||
|
name = "registers",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
require("lazy").setup(plugins, {})
|
require("lazy").setup(plugins, {})
|
||||||
|
|||||||
Reference in New Issue
Block a user