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 -- better vim.notify
{ {
"rcarriga/nvim-notify", "rcarriga/nvim-notify",
init = function() config = {
vim.notify = function(...) timeout = 3000,
vim.notify = require("notify") max_height = function()
return vim.notify(...) return math.floor(vim.o.lines * 0.75)
end end,
end, max_width = function()
return math.floor(vim.o.columns * 0.75)
end,
},
}, },
-- better vim.ui -- better vim.ui