fix(which-key): use new which-key support for native group keymaps (nop)

This commit is contained in:
Folke Lemaitre 2024-06-06 10:46:51 +02:00
parent bac4bba016
commit 8010f50aa5
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
8 changed files with 11 additions and 69 deletions

View file

@ -50,14 +50,8 @@ return {
update_n_lines = "gzn", -- Update `n_lines`
},
},
},
{
"folke/which-key.nvim",
optional = true,
opts = {
defaults = {
["gz"] = { name = "+surround" },
},
keys = {
{ "gz", "", desc = "+surround" },
},
},

View file

@ -7,6 +7,7 @@ return {
"nvim-treesitter/nvim-treesitter",
},
keys = {
{ "<leader>r", "", desc = "+refactor" },
{
"<leader>rs",
function()
@ -124,15 +125,4 @@ return {
end
end,
},
-- which key integration
{
"folke/which-key.nvim",
optional = true,
opts = {
defaults = {
["<leader>r"] = { name = "+refactor" },
},
},
},
}