mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(notifier): allow config of default filetype
This commit is contained in:
parent
18e41222e3
commit
8a96888409
1 changed files with 2 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue