From f54d95d96511e1e8a575573b937a99338f178639 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 17 Jun 2023 08:20:44 +0200 Subject: [PATCH] fix(which-key): don't load which-key as a noice dep --- lua/lazyvim/plugins/ui.lua | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index f11413b6..b978b028 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -218,20 +218,17 @@ return { }, -- noicer ui + { + "folke/which-key.nvim", + opts = function(_, opts) + if require("lazyvim.util").has("noice.nvim") then + opts.defaults["sn"] = { name = "+noice" } + end + end, + }, { "folke/noice.nvim", event = "VeryLazy", - dependencies = { - -- which key integration - { - "folke/which-key.nvim", - opts = function(_, opts) - if require("lazyvim.util").has("noice.nvim") then - opts.defaults["sn"] = { name = "+noice" } - end - end, - }, - }, opts = { lsp = { override = {