2023-11-18 02:27:14 +02:00
|
|
|
-- Display possible keybinds
|
2023-11-25 14:37:36 +02:00
|
|
|
--- @type LazyPluginSpec
|
2023-11-18 02:27:14 +02:00
|
|
|
return {
|
|
|
|
"folke/which-key.nvim",
|
|
|
|
config = function()
|
2024-07-13 15:49:55 +03:00
|
|
|
require("which-key").add({
|
|
|
|
{ "<leader>", group = "Leader" },
|
|
|
|
{ "g", group = "Go to" },
|
2023-11-18 02:27:14 +02:00
|
|
|
})
|
|
|
|
end,
|
2024-07-13 15:49:55 +03:00
|
|
|
keys = {
|
|
|
|
{
|
|
|
|
"<leader>?",
|
|
|
|
function()
|
|
|
|
require("which-key").show({ global = false })
|
|
|
|
end,
|
|
|
|
desc = "Buffer Local Keymaps (which-key)",
|
|
|
|
},
|
|
|
|
},
|
2023-11-18 02:27:14 +02:00
|
|
|
}
|