mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 17:28:57 +02:00
feat(notify): better defaults
This commit is contained in:
parent
8eb8d235c9
commit
bbd0a8a414
1 changed files with 9 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue