fix: Make background transparent when nvim-notify is used (#242)

This commit is contained in:
Liquid_system
2022-10-11 03:16:57 +09:00
committed by GitHub
parent fd9105c948
commit b4858e1108

View File

@@ -571,11 +571,11 @@ function M.setup()
-- 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 },
NotifyERRORBorder = { fg = util.darken(c.error, 0.3), bg = options.transparent and c.none or c.bg },
NotifyWARNBorder = { fg = util.darken(c.warning, 0.3), bg = options.transparent and c.none or c.bg },
NotifyINFOBorder = { fg = util.darken(c.info, 0.3), bg = options.transparent and c.none or c.bg },
NotifyDEBUGBorder = { fg = util.darken(c.comment, 0.3), bg = options.transparent and c.none or c.bg },
NotifyTRACEBorder = { fg = util.darken(c.purple, 0.3), bg = options.transparent and c.none or c.bg },
--- Icons
NotifyERRORIcon = { fg = c.error },
NotifyWARNIcon = { fg = c.warning },
@@ -589,11 +589,11 @@ function M.setup()
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 },
NotifyERRORBody = { fg = c.fg, bg = options.transparent and c.none or c.bg },
NotifyWARNBody = { fg = c.fg, bg = options.transparent and c.none or c.bg },
NotifyINFOBody = { fg = c.fg, bg = options.transparent and c.none or c.bg },
NotifyDEBUGBody = { fg = c.fg, bg = options.transparent and c.none or c.bg },
NotifyTRACEBody = { fg = c.fg, bg = options.transparent and c.none or c.bg },
-- Mini
MiniCompletionActiveParameter = { underline = true },