aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2025-02-18 19:24:13 +0000
committerJustine Smithies <justine@smithies.me.uk>2025-02-18 19:24:13 +0000
commitfea6124c336eacd2e3b5422e54437ca47193021d (patch)
tree8a84f66d86f9b1c10611b9a3405982652088b232
parentb4da5b4812710d4dc9612f74dcc9f4d15e9aed0c (diff)
Fixed config for which-key plugin.
-rw-r--r--.config/nvim/lua/plugins/whichkey.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/whichkey.lua b/.config/nvim/lua/plugins/whichkey.lua
index d813580..9fadb97 100644
--- a/.config/nvim/lua/plugins/whichkey.lua
+++ b/.config/nvim/lua/plugins/whichkey.lua
@@ -1,3 +1,18 @@
return {
"folke/which-key.nvim",
+ event = "VeryLazy",
+ opts = {
+ -- your configuration comes here
+ -- or leave it empty to use the default settings
+ -- refer to the configuration section below
+ },
+ keys = {
+ {
+ "<leader>?",
+ function()
+ require("which-key").show({ global = false })
+ end,
+ desc = "Buffer Local Keymaps (which-key)",
+ },
+ },
}