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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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