From bbd0a8a414523b4839ea01f3a647eac23c7b85d5 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 2 Jan 2023 09:47:03 +0100 Subject: [PATCH] feat(notify): better defaults --- lua/lazyvim/plugins/ui.lua | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index c75e08c4..28ab07d7 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -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