-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhich-key.lua
More file actions
31 lines (31 loc) · 852 Bytes
/
Copy pathwhich-key.lua
File metadata and controls
31 lines (31 loc) · 852 Bytes
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
31
-- Always provides a way to remind you of keymaps that you may not use
-- often enough to remember 100% of the time. Helps discover/rediscover
-- and learn keymaps.
return {
"folke/which-key.nvim",
event = "VeryLazy",
opts = function()
require("which-key").add({
{ "<leader>b", group = "+Breakpoint" },
{ "<leader>d", group = "+Debug" },
{ "<leader>g", group = "+Git" },
{ "<leader>r", group = "+Refactor" },
{ "<leader>s", group = "+Search" },
{ "<leader>x", group = "+Trouble" },
{ "z", group = "+Fold" },
{ "\\", group = "+Toggle" },
{ "[", group = "+Prev" },
{ "]", group = "+Next" },
{
"<leader>?",
function()
require("which-key").show()
end,
desc = "Keymaps",
},
})
return {
preset = "helix",
}
end,
}