dots/.config/nvim/lua/plugins/util/which-key.lua
2025-05-21 16:25:20 -07:00

28 lines
530 B
Lua

return {
{
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
keys = {
{
"<leader>!",
function()
require("which-key").show({ global = true })
end,
desc = "Buffer All Keymaps (which-key)",
},
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
},
}