summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/ache/plugins/which-key.lua14
1 files changed, 12 insertions, 2 deletions
diff --git a/lua/ache/plugins/which-key.lua b/lua/ache/plugins/which-key.lua
index 33b1f3e..e57edcc 100644
--- a/lua/ache/plugins/which-key.lua
+++ b/lua/ache/plugins/which-key.lua
@@ -1,14 +1,24 @@
--[
--- Show a helpful remainder when you start typing a shortkey.
+-- Show a helpful remainder when you start typing a short key.
--
--- After some time of hesitation, "which-key" will show all the available mapping and describe them.
+-- After some time of hesitation, « which-key » will show all the available mapping and describe them.
--]
return {
"folke/which-key.nvim",
+ enabled = true,
event = "VeryLazy",
init = function()
vim.opt.timeout = true
vim.opt.timeoutlen = 500
end,
opts = {}, -- Use default configuration.
+ keys = {
+ {
+ "<leader>?",
+ function()
+ require("which-key").show({ global = true, loop = true })
+ end,
+ desc = "Buffer Local Keymaps (which-key)",
+ },
+ },
}