dotfiles/home/.config/nvim/lua/plugins/which-key.lua

20 lines
409 B
Lua

-- Display possible keybinds
--- @type LazyPluginSpec
return {
"folke/which-key.nvim",
config = function()
require("which-key").add({
{ "<leader>", group = "Leader" },
{ "g", group = "Go to" },
})
end,
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
}