feat(notify): lazy-load nvim-notify to show proper notifs before Noice loads

This commit is contained in:
Folke Lemaitre 2023-01-10 14:15:48 +01:00
parent 9d69c7f473
commit 74063135d8
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -20,6 +20,12 @@ return {
return math.floor(vim.o.columns * 0.75)
end,
},
init = function()
-- lazy-load notify here. Will be overriden by Noice when it loads
vim.notify = function(...)
return require("notify").notify(...)
end
end,
},
-- better vim.ui