From b873f9a7e7ca77f329b40b17741ee244520a1306 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 19 Nov 2024 09:03:00 +0100 Subject: [PATCH] fix(snacks): make sure early notifications show up in noice --- lua/lazyvim/plugins/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/lazyvim/plugins/init.lua b/lua/lazyvim/plugins/init.lua index cf587454..8ea946ea 100644 --- a/lua/lazyvim/plugins/init.lua +++ b/lua/lazyvim/plugins/init.lua @@ -57,5 +57,14 @@ return { desc = "Dismiss All Notifications", }, }, + config = function(_, opts) + local notify = vim.notify + require("snacks").setup(opts) + -- HACK: restore vim.notify after snacks setup and let noice.nvim take over + -- this is needed to have early notifications show up in noice history + if LazyVim.has("noice.nvim") then + vim.notify = notify + end + end, }, }