update to v3 keymaps
This commit is contained in:
parent
f750467ce5
commit
49af92267a
|
@ -2,19 +2,19 @@ return { -- Useful plugin to show you pending keybinds.
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
event = "VimEnter", -- Sets the loading event to 'VimEnter'
|
event = "VimEnter", -- Sets the loading event to 'VimEnter'
|
||||||
config = function() -- This is the function that runs, AFTER loading
|
config = function() -- This is the function that runs, AFTER loading
|
||||||
require("which-key").setup({
|
local wk = require("which-key")
|
||||||
triggers_blacklist = {
|
wk.setup({
|
||||||
n = { "d", "y", "v" },
|
modes = { defer = { v = true, y = true, d = true } },
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Document existing key chains
|
-- Document existing key chains
|
||||||
require("which-key").register({
|
|
||||||
["<leader>c"] = { name = "[C]ode", _ = "which_key_ignore" },
|
wk.add({
|
||||||
["<leader>d"] = { name = "[D]ocument", _ = "which_key_ignore" },
|
|
||||||
["<leader>r"] = { name = "[R]ename", _ = "which_key_ignore" },
|
{ "<leader>c", group = "[C]ode" },
|
||||||
["<leader>s"] = { name = "[S]earch", _ = "which_key_ignore" },
|
{ "<leader>d", group = "[D]ocument" },
|
||||||
["<leader>w"] = { name = "[W]orkspace", _ = "which_key_ignore" },
|
{ "<leader>s", group = "[S]earch" },
|
||||||
|
{ "<leader>w", group = "[W]orkspace" },
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue