feat: added highlights for nvim-notify (#237)

* feat: added highlights for `nvim.notify`

* use c.bg instead of c.bg_float
This commit is contained in:
Loong Wang 2022-10-06 05:22:30 +08:00 committed by GitHub
parent d6a0adfe3f
commit 459678063f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -567,6 +567,32 @@ function M.setup()
YankyPut = { link = "IncSearch" },
YankyYanked = { link = "IncSearch" },
-- Notify
--- Border
NotifyERRORBorder = { fg = util.darken(c.error, 0.3), bg = c.bg },
NotifyWARNBorder = { fg = util.darken(c.warning, 0.3), bg = c.bg },
NotifyINFOBorder = { fg = util.darken(c.info, 0.3), bg = c.bg },
NotifyDEBUGBorder = { fg = util.darken(c.comment, 0.3), bg = c.bg },
NotifyTRACEBorder = { fg = util.darken(c.purple, 0.3), bg = c.bg },
--- Icons
NotifyERRORIcon = { fg = c.error },
NotifyWARNIcon = { fg = c.warning },
NotifyINFOIcon = { fg = c.info },
NotifyDEBUGIcon = { fg = c.comment },
NotifyTRACEIcon = { fg = c.purple },
--- Title
NotifyERRORTitle = { fg = c.error },
NotifyWARNTitle = { fg = c.warning },
NotifyINFOTitle = { fg = c.info },
NotifyDEBUGTitle = { fg = c.comment },
NotifyTRACETitle = { fg = c.purple },
--- Body
NotifyERRORBody = { fg = c.fg, bg = c.bg },
NotifyWARNBody = { fg = c.fg, bg = c.bg },
NotifyINFOBody = { fg = c.fg, bg = c.bg },
NotifyDEBUGBody = { fg = c.fg, bg = c.bg },
NotifyTRACEBody = { fg = c.fg, bg = c.bg },
-- Mini
MiniCompletionActiveParameter = { underline = true },