Skip to content

Commit

Permalink
fix(which-key): don't load which-key as a noice dep
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 17, 2023
1 parent ebd002f commit f54d95d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions lua/lazyvim/plugins/ui.lua
Expand Up @@ -218,20 +218,17 @@ return {
},

-- noicer ui
{
"folke/which-key.nvim",
opts = function(_, opts)
if require("lazyvim.util").has("noice.nvim") then
opts.defaults["<leader>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["<leader>sn"] = { name = "+noice" }
end
end,
},
},
opts = {
lsp = {
override = {
Expand Down

0 comments on commit f54d95d

Please sign in to comment.