Skip to content

Commit

Permalink
fix(notify): install notify when noice is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 14, 2023
1 parent cc3070d commit 5d6f0d5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/lazyvim/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ return {
return math.floor(vim.o.columns * 0.75)
end,
},
init = function()
-- when noice is not enabled, install notify on VeryLazy
local Util = require("lazyvim.util")
if not Util.has("noice.nvim") then
Util.on_very_lazy(function()
vim.notify = require("notify")
end)
end
end,
},

-- better vim.ui
Expand Down

0 comments on commit 5d6f0d5

Please sign in to comment.