From 73b1e20d38d4d238316ed391faf3d7ad4c3e71be Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 18 Nov 2024 08:57:32 +0100 Subject: [PATCH] feat(notifier): global keep when in cmdline --- lua/snacks/notifier.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/snacks/notifier.lua b/lua/snacks/notifier.lua index 6085722..37c6202 100644 --- a/lua/snacks/notifier.lua +++ b/lua/snacks/notifier.lua @@ -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