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
8 changed files with 11 additions and 69 deletions

View File

@ -266,16 +266,6 @@ return {
main = "ibl",
},
-- Displays a popup with possible key bindings of the command you started typing
{
"folke/which-key.nvim",
opts = function(_, opts)
if LazyVim.has("noice.nvim") then
opts.defaults["<leader>sn"] = { name = "+noice" }
end
end,
},
-- Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu.
{
"folke/noice.nvim",
@ -309,6 +299,7 @@ return {
},
-- stylua: ignore
keys = {
{ "<leader>sn", "", desc = "+noice"},
{ "<S-Enter>", function() require("noice").redirect(vim.fn.getcmdline()) end, mode = "c", desc = "Redirect Cmdline" },
{ "<leader>snl", function() require("noice").cmd("last") end, desc = "Noice Last Message" },
{ "<leader>snh", function() require("noice").cmd("history") end, desc = "Noice History" },