diff --git a/lua/notify/render/wrapped-compact.lua b/lua/notify/render/wrapped-compact.lua index 0de7a8d..16497fc 100644 --- a/lua/notify/render/wrapped-compact.lua +++ b/lua/notify/render/wrapped-compact.lua @@ -46,6 +46,9 @@ return function(bufnr, notif, highlights, config) -- wrap the text & add spacing local max_width = config.max_width() + if max_width == nil then + max_width = 80 + end notif.message = custom_wrap(notif.message, max_width) local default_titles = { "Error", "Warning", "Notify" }