fix: which-key works now
This commit is contained in:
parent
446dd1ddbd
commit
3499df1856
1 changed files with 8 additions and 12 deletions
|
|
@ -211,18 +211,14 @@ require("lazy").setup({
|
|||
{ -- Useful plugin to show you pending keybinds.
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy", -- Sets the loading event to 'VeryLazy'
|
||||
config = function() -- This is the function that runs, AFTER loading
|
||||
require("which-key").setup()
|
||||
|
||||
-- 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" },
|
||||
})
|
||||
end,
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "<leader>c", name = "[C]ode" },
|
||||
{ "<leader>d", name = "[D]ocument" },
|
||||
{ "<leader>r", name = "[R]ename" },
|
||||
{ "<leader>s", name = "[S]earch" },
|
||||
{ "<leader>w", name = "[W]orkspace" },
|
||||
},
|
||||
},
|
||||
|
||||
-- NOTE: Plugins can specify dependencies.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue