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

25 lines
595 B
Lua
Raw Normal View History

2025-05-03 17:02:57 +02:00
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
spec = {
{ '[', group = 'Navigation' },
{ ']', group = 'Navigation' },
{ '<leader>t', group = '[T]oggle' },
{ '<leader>h', group = 'Git [h]unk', mode = { 'n', 'v' } },
},
},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
}