mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-27 22:24:50 +02:00
refactor: which-key mappings
This commit is contained in:
parent
6f91b406dd
commit
3d1f961232
1 changed files with 15 additions and 13 deletions
|
@ -169,13 +169,6 @@ return {
|
||||||
{
|
{
|
||||||
mode = { "n", "v" },
|
mode = { "n", "v" },
|
||||||
{ "<leader><tab>", group = "tabs" },
|
{ "<leader><tab>", group = "tabs" },
|
||||||
{
|
|
||||||
"<leader>b",
|
|
||||||
group = "buffer",
|
|
||||||
expand = function()
|
|
||||||
return require("which-key.extras").expand.buf()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{ "<leader>c", group = "code" },
|
{ "<leader>c", group = "code" },
|
||||||
{ "<leader>f", group = "file/find" },
|
{ "<leader>f", group = "file/find" },
|
||||||
{ "<leader>g", group = "git" },
|
{ "<leader>g", group = "git" },
|
||||||
|
@ -183,6 +176,19 @@ return {
|
||||||
{ "<leader>q", group = "quit/session" },
|
{ "<leader>q", group = "quit/session" },
|
||||||
{ "<leader>s", group = "search" },
|
{ "<leader>s", group = "search" },
|
||||||
{ "<leader>u", group = "ui", icon = { icon = " ", color = "cyan" } },
|
{ "<leader>u", group = "ui", icon = { icon = " ", color = "cyan" } },
|
||||||
|
{ "<leader>x", group = "diagnostics/quickfix", icon = { icon = " ", color = "green" } },
|
||||||
|
{ "[", group = "prev" },
|
||||||
|
{ "]", group = "next" },
|
||||||
|
{ "g", group = "goto" },
|
||||||
|
{ "gs", group = "surround" },
|
||||||
|
{ "z", group = "fold" },
|
||||||
|
{
|
||||||
|
"<leader>b",
|
||||||
|
group = "buffer",
|
||||||
|
expand = function()
|
||||||
|
return require("which-key.extras").expand.buf()
|
||||||
|
end,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"<leader>w",
|
"<leader>w",
|
||||||
group = "windows",
|
group = "windows",
|
||||||
|
@ -191,12 +197,8 @@ return {
|
||||||
return require("which-key.extras").expand.win()
|
return require("which-key.extras").expand.win()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ "<leader>x", group = "diagnostics/quickfix", icon = { icon = " ", color = "green" } },
|
-- better descriptions
|
||||||
{ "[", group = "prev" },
|
{ "gx", desc = "Open with system app" },
|
||||||
{ "]", group = "next" },
|
|
||||||
{ "g", group = "goto" },
|
|
||||||
{ "gs", group = "surround" },
|
|
||||||
{ "z", group = "fold" },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue