update to v3 keymaps

This commit is contained in:
andrzej 2024-08-26 15:28:22 +02:00
parent f750467ce5
commit 49af92267a
1 changed files with 10 additions and 10 deletions

View File

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