return { -- Shows pending keybinds "folke/which-key.nvim", event = "VimEnter", opts = { popup_mappings = { scroll_down = "", scroll_up = "", }, }, config = function() require("which-key").setup({ -- Remove this if so many keymaps, that you need to scroll -- popup_mappings = { -- scroll_down = "", -- scroll_up = "", -- }, -- Doesn't work -- trigger_blacklist = { -- v = { "j", "k", "", "" }, -- }, }) -- Document existing key chains require("which-key").add({ -- Naming leader-key-groups { "c", group = "[C]ode" }, { "c_", hidden = true }, { "d", group = "[D]ocument" }, { "d_", hidden = true }, { "o", group = "[O]rgmode" }, { "o_", hidden = true }, { "r", group = "[R]ename" }, { "r_", hidden = true }, { "s", group = "[S]earch" }, { "s_", hidden = true }, { "w", group = "[W]orkspace" }, -- old: require("which-key").register: -- ["c"] = { name = "[C]ode", _ = "which_key_ignore" }, -- ["d"] = { name = "[D]ocument", _ = "which_key_ignore" }, -- ["r"] = { name = "[R]ename", _ = "which_key_ignore" }, -- ["s"] = { name = "[S]earch", _ = "which_key_ignore" }, -- ["w"] = { name = "[W]orkspace", _ = "which_key_ignore" }, -- ["o"] = { name = "[O]rgmode", _ = "which_key_ignore" }, }) end, }