aboutsummaryrefslogtreecommitdiff
path: root/mirenn/home/files/dotfiles/.config/nvim/lua/plugins/which-key.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mirenn/home/files/dotfiles/.config/nvim/lua/plugins/which-key.lua')
-rw-r--r--mirenn/home/files/dotfiles/.config/nvim/lua/plugins/which-key.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/mirenn/home/files/dotfiles/.config/nvim/lua/plugins/which-key.lua b/mirenn/home/files/dotfiles/.config/nvim/lua/plugins/which-key.lua
new file mode 100644
index 0000000..4e391f9
--- /dev/null
+++ b/mirenn/home/files/dotfiles/.config/nvim/lua/plugins/which-key.lua
@@ -0,0 +1,25 @@
+local config = function()
+ require("which-key").setup()
+ vim.o.timeout = true
+ vim.o.timeoutlen = 500
+end
+
+return {
+ "folke/which-key.nvim",
+ lazy = true,
+ event = "VeryLazy",
+ config = config,
+ keys = {
+ {
+ "<leader>?",
+ function()
+ require("which-key").show({ global = false })
+ end,
+ desc = "Buffer Local Keymaps (which-key)",
+ },
+ },
+ dependencies = {
+ "echasnovski/mini.icons",
+ "nvim-tree/nvim-web-devicons", -- optional
+ },
+}