fix duplicate which-key install

This commit is contained in:
Parham Moieni 2023-10-02 20:35:03 +03:30
parent 7c5a458761
commit b24efafbe1
2 changed files with 27 additions and 31 deletions

View file

@ -277,7 +277,12 @@ return {
{
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
opts = function (_, opts)
if require("lazyvim.util").has("noice.nvim") then
opts.defaults["<leader>sn"] = { name = "+noice" }
end
return {
plugins = { spelling = true },
defaults = {
mode = { "n", "v" },
@ -297,7 +302,8 @@ return {
["<leader>w"] = { name = "+windows" },
["<leader>x"] = { name = "+diagnostics/quickfix" },
},
},
}
end,
config = function(_, opts)
local wk = require("which-key")
wk.setup(opts)

View file

@ -224,16 +224,6 @@ return {
end,
},
-- Displays a popup with possible key bindings of the command you started typing
{
"folke/which-key.nvim",
opts = function(_, opts)
if require("lazyvim.util").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",