mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 11:18:26 +00:00
fix(notifier): added SnacksNotifierMinimal
. Closes #410
This commit is contained in:
parent
6f661c75f1
commit
daa575e3cd
1 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,7 @@ N.styles = {
|
|||
minimal = function(buf, notif, ctx)
|
||||
ctx.opts.border = "none"
|
||||
local whl = ctx.opts.wo.winhighlight
|
||||
ctx.opts.wo.winhighlight = whl:gsub(ctx.hl.msg, "NormalFloat")
|
||||
ctx.opts.wo.winhighlight = whl:gsub(ctx.hl.msg, "SnacksNotifierMinimal")
|
||||
vim.api.nvim_buf_set_lines(buf, 0, -1, false, vim.split(notif.msg, "\n"))
|
||||
vim.api.nvim_buf_set_extmark(buf, ctx.ns, 0, 0, {
|
||||
virt_text = { { notif.icon, ctx.hl.icon } },
|
||||
|
@ -290,6 +290,7 @@ function N:init()
|
|||
[hl("History")] = "Normal",
|
||||
[hl("HistoryTitle")] = "Title",
|
||||
[hl("HistoryDateTime")] = "Special",
|
||||
SnacksNotifierMinimal = "NormalFloat",
|
||||
}
|
||||
for _, level in ipairs(N.level_names) do
|
||||
local Level = cap(level)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue