feat(notifier): allow config of default filetype

This commit is contained in:
Folke Lemaitre 2024-11-06 18:56:20 +01:00
parent 18e41222e3
commit 8a96888409
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -64,6 +64,7 @@ Snacks.config.style("notification", {
winblend = 5,
wrap = false,
},
bo = { filetype = "markdown" },
})
---@class snacks.notifier.Config
@ -308,7 +309,7 @@ function N:render(notif)
style = "notification",
enter = false,
backdrop = false,
bo = { filetype = notif.ft or "markdown", modifiable = false },
bo = { filetype = notif.ft },
noautocmd = true,
wo = {
winhighlight = table.concat({