fix(notify): install notify when noice is not enabled

This commit is contained in:
Folke Lemaitre
2023-02-14 21:56:09 +01:00
parent cc3070d30e
commit 5d6f0d58d5

View File

@ -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