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
27
28
29
30
|
return {
{
"folke/which-key.nvim",
event = "VeryLazy",
keys = {
{
"<leader>@",
function()
local which_key = require("which-key")
which_key.show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
config = function()
local wk = require("which-key")
wk.add({
{ "<leader>c", group = "Code actions" },
{ "<leader>g", group = "Git actions" },
{ "<leader>d", group = "Diagnostics" },
{ "<leader>t", group = "Tests" },
{ "<leader>;", group = "Terminal" },
{ "<leader>n", group = "Run" },
{ "<leader>j", group = "Split/Join" },
{ "<leader>q", group = "Lists (Trouble)" },
{ "<leader>s", group = "Swap args" },
})
end,
},
}
|