Shows available keybindings in a popup after pressing a prefix key. Groups leader-key bindings by function (find, buffers, goto/lsp). Adds <leader>? to show buffer-local keymaps.
25 lines
437 B
Lua
25 lines
437 B
Lua
return {
|
|
"folke/which-key.nvim",
|
|
event = "VeryLazy",
|
|
opts = {
|
|
delay = 300,
|
|
icons = {
|
|
separator = "→",
|
|
},
|
|
spec = {
|
|
{"<leader>f", group = "find",},
|
|
{"<leader>b", group = "buffers",},
|
|
{"g", group = "goto/lsp",},
|
|
},
|
|
},
|
|
keys = {
|
|
{
|
|
"<leader>?",
|
|
function()
|
|
require("which-key").show({global = false,})
|
|
end,
|
|
desc = "Buffer Local Keymaps",
|
|
},
|
|
},
|
|
}
|