Groups for which-key

This commit is contained in:
Valeriy Filippov
2026-03-11 11:12:43 +03:00
parent bfd1fe67b3
commit 892a7fe416
2 changed files with 79 additions and 29 deletions

View File

@@ -1,14 +1,27 @@
-- https://github.com/folke/which-key.nvim
return {
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 500
end,
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 500
end,
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
spec = {
{ "<leader>c", group = "[C]lear / [C]all" },
{ "<leader>d", group = "[D]iagnostic" },
{ "<leader>e", group = "File [E]xplorer" },
{ "<leader>f", group = "[F]ind" },
{ "<leader>g", group = "[G]it" },
{ "<leader>h", group = "[H]istory" },
{ "<leader>l", group = "[L]SP" },
{ "<leader>p", group = "[P]anes" },
{ "<leader>s", group = "[S]ession" },
{ "<leader>t", group = "[T]abs" },
{ "<leader>u", group = "[U]i" },
},
},
}