local function config() --- Ensure plugin is avaiable local wk = require("which-key") --- Global options vim.o.timeout = true vim.o.timeoutlen = 300 --- Add description to leader group wk.register({ n = { name = "NoHighLight", }, e = { name = "NvimTree", }, f = { name = "Telescope" }, }, { prefix = "" }) --- Override keymap local km = vim.keymap.set km('n', '', ':WhichKey', { desc = "Which-key" }) end return { "folke/which-key.nvim", event = "VeryLazy", config = config }