feat(main): support nvim-notify (#132)

Add support for nvim-notify plugin.

The plugin also provides highlight groups for the border color of
the popups in addition to the title and icon colors. However, in
the spirit of zenbones using color conservatively, I decided not
to set the border color a shade of the diagnost color.
This commit is contained in:
Pete Kazmier
2023-08-30 07:42:21 -04:00
committed by GitHub
parent ba1c6ad486
commit dd4ad1273d
2 changed files with 22 additions and 0 deletions

View File

@@ -438,6 +438,17 @@ local function generate(p, opt)
FlashLabel { bg = p.water.lightness(p1.bg.l + 24), fg = p.fg }, FlashLabel { bg = p.water.lightness(p1.bg.l + 24), fg = p.fg },
FlashBackdrop { fg = Comment.fg }, FlashBackdrop { fg = Comment.fg },
NotifyERRORIcon { DiagnosticError },
NotifyERRORTitle { DiagnosticError },
NotifyWARNIcon { DiagnosticWarn },
NotifyWARNTitle { DiagnosticWarn },
NotifyINFOIcon { DiagnosticInfo },
NotifyINFOTitle { DiagnosticInfo },
NotifyDEBUGIcon { DiagnosticHint },
NotifyDEBUGTitle { DiagnosticHint },
NotifyTRACEIcon { DiagnosticHint },
NotifyTRACETitle { DiagnosticHint },
} }
end) end)
-- stylua: ignore end -- stylua: ignore end

View File

@@ -438,6 +438,17 @@ local function generate(p, opt)
FlashLabel { bg = p.water.lightness(p1.bg.l - 15), fg = p.fg }, FlashLabel { bg = p.water.lightness(p1.bg.l - 15), fg = p.fg },
FlashBackdrop { fg = Comment.fg }, FlashBackdrop { fg = Comment.fg },
NotifyERRORIcon { DiagnosticError },
NotifyERRORTitle { DiagnosticError },
NotifyWARNIcon { DiagnosticWarn },
NotifyWARNTitle { DiagnosticWarn },
NotifyINFOIcon { DiagnosticInfo },
NotifyINFOTitle { DiagnosticInfo },
NotifyDEBUGIcon { DiagnosticHint },
NotifyDEBUGTitle { DiagnosticHint },
NotifyTRACEIcon { DiagnosticHint },
NotifyTRACETitle { DiagnosticHint },
} }
end) end)
-- stylua: ignore end -- stylua: ignore end