From 459678063fcbb171c3378ddc7e991ba1129c23a9 Mon Sep 17 00:00:00 2001 From: Loong Wang Date: Thu, 6 Oct 2022 05:22:30 +0800 Subject: [PATCH] feat: added highlights for `nvim-notify` (#237) * feat: added highlights for `nvim.notify` * use c.bg instead of c.bg_float --- lua/tokyonight/theme.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index 8fa5e29..016f323 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -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 },