return { "folke/which-key.nvim", event = "VeryLazy", keys = { { "?", function() require("which-key").show({ global = false }) end, desc = "Buffer Local Keymaps (which-key)", }, }, init = function() vim.o.timeout = true vim.o.timeoutlen = 0 local wk = require('which-key') wk.setup({ hide_statusline = false, default_keymap_settings = { silent = true, noremap = true, }, default_mode = 'n', }) -- Map window keys to leader w vim.cmd [[nmap w ]] wk.add({ { "w", group = "window" }, { "w+", desc = "Increase height" }, { "w-", desc = "Decrease height" }, { "w<", desc = "Decrease width" }, { "w=", desc = "Equally high and wide" }, { "w>", desc = "Increase width" }, { "wT", desc = "Break out into a new tab" }, { "wh", desc = "Go to the left window" }, { "wj", desc = "Go to the down window" }, { "wk", desc = "Go to the up window" }, { "wl", desc = "Go to the right window" }, { "wq", desc = "Quit a window" }, { "ws", desc = "Split window" }, { "wv", desc = "Split window vertically" }, { "ww", desc = "Pick Window" }, { "wx", desc = "Swap current with next" }, { "w|", desc = "Max out the width" }, }) end }