return { { -- Useful plugin to show you pending keybinds. "folke/which-key.nvim", event = "VimEnter", -- Sets the loading event to 'VimEnter' config = function() -- This is the function that runs, AFTER loading require("which-key").setup() -- Document existing key chains require("which-key").add({ { "c", group = "[C]ode" }, { "c_", hidden = true }, { "d", group = "[D]ocument" }, { "d_", hidden = true }, { "h", group = "Git [H]unk" }, { "h_", hidden = true }, { "r", group = "[R]ename" }, { "r_", hidden = true }, { "s", group = "[S]earch" }, { "s_", hidden = true }, { "t", group = "[T]oggle" }, { "t_", hidden = true }, { "w", group = "[W]orkspace" }, { "w_", hidden = true }, }) -- visual mode require("which-key").add({ {"h", group = "Git [H]unk" }, }, { mode = "v" }) end, }, }