mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(snacks): make sure early notifications show up in noice
This commit is contained in:
parent
59615281f8
commit
b873f9a7e7
1 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue