1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
return {
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
preset = "modern",
spec = {
{ "<leader>a", group = "ai" },
{ "gm", group = "+Copilot chat" },
{ "gmh", desc = "Show help" },
{ "gmd", desc = "Show diff" },
{ "gmp", desc = "Show system prompt" },
{ "gms", desc = "Show selection" },
{ "gmy", desc = "Yank diff" },
},
},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
}
|