-- Which-key is configured here. But bindings are located with the plugin that they are for local ok, whichKey = pcall(require,'which-key') if not ok then return end -- Because which-key uses the timeoutlen to decide when to show it it set to 0 here -- This makes it appear instantly vim.o.timeout = true vim.o.timeoutlen = 0 whichKey.setup({ plugins = { marks = true, registers = true, spelling = { enabled = true, suggestions = 10, }, presets = { operators = true, motions = true, text_objects = true, windows = true, nav = true, z = true, g = true, }, }, icons = { breadcrumb = "󰇘", separator = "󰇼", group = "󰋃", }, window = { border = "single", position = "bottom", }, -- ignore_missing = true, disable = { filetypes = {"TelescopePrompt"} } }) -- TODO: Set some keymap documentation if some old-style plugins are loaded. -- NERD commenter - Name the group -- Vimwiki - Name the group