feat(notifier): global keep when in cmdline

This commit is contained in:
Folke Lemaitre 2024-11-18 08:57:32 +01:00
parent b593598859
commit 73b1e20d38
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -116,6 +116,9 @@ local defaults = {
debug = "",
trace = "",
},
keep = function(notif)
return vim.fn.getcmdpos() > 0
end,
---@type snacks.notifier.style
style = "compact",
top_down = true, -- place notifications from top to bottom