feat(notify): better defaults

This commit is contained in:
Folke Lemaitre 2023-01-02 09:47:03 +01:00
parent 8eb8d235c9
commit bbd0a8a414
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -2,12 +2,15 @@ return {
-- better vim.notify
{
"rcarriga/nvim-notify",
init = function()
vim.notify = function(...)
vim.notify = require("notify")
return vim.notify(...)
end
end,
config = {
timeout = 3000,
max_height = function()
return math.floor(vim.o.lines * 0.75)
end,
max_width = function()
return math.floor(vim.o.columns * 0.75)
end,
},
},
-- better vim.ui