refactor(nvim): improve snacks notifier appearance

This commit is contained in:
Price Hiller 2024-11-11 20:12:21 -06:00
parent fe757ad6b1
commit f7bc9f393b
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -39,7 +39,9 @@ return {
{ {
"<leader>nv", "<leader>nv",
function() function()
require("snacks").notifier.show_history() require("snacks").notifier.show_history({
sort = { "added" },
})
end, end,
desc = "Notifications: Search", desc = "Notifications: Search",
}, },
@ -57,6 +59,10 @@ return {
words = { enabled = true }, words = { enabled = true },
statuscolumn = { enabled = false }, statuscolumn = { enabled = false },
}) })
snacks.config.styles["notification.history"] = {
title = { { "Notification History", "@markup.heading.4" } },
border = { { " ", "INVALIDHIGHLIGHTHERE" } },
}
_G.bt = snacks.debug.backtrace _G.bt = snacks.debug.backtrace
_G.dd = snacks.debug.inspect _G.dd = snacks.debug.inspect
vim.print = snacks.debug.inspect vim.print = snacks.debug.inspect