local wk = require("which-key") wk.setup { ignore_missing = false } wk.register({ [""] = { -- Barbar b = { name = "Barbar", x = { "BufferClose", "Close Buffer" }, n = { "BufferMoveNext", "Move Next" }, m = { "BufferMovePrevious", "Move Previous" }, p = { name = "Pinned Buffers", p = { "BufferPin", "Pin Buffer" }, x = { "BufferCloseAllButPinned", "Close All But Pinned" } } }, -- Telescope t = { name = "Telescope", w = { "Telescope live_grep", "Live Grep" }, f = { "Telescope fd", "Find Files" }, c = { "Telescope current_buffer_fuzzy_find", "Find In Current Buffer" }, b = { "Telescope buffers", "Buffers" }, k = { "Telescope keymaps", "Keymaps" }, t = { "TodoTelescope", "Todos" } }, g = { name = "Git", b = { "Gitsigns blame_line", "Blame Line" }, d = { "Gitsigns diffthis", "Diff" } } }, -- NvimTree [""] = { "NvimTreeToggle", "NvimTree Toggle" }, -- Barbar (switching buffers) [""] = { "BufferNext", "Next Buffer" }, [""] = { "BufferPrevious", "Previous Buffer" }, ["t"] = { name = "Trouble", t = { "TroubleToggle", "Trouble Toggle" }, d = { "TodoTrouble", "Todos" } } })