From dab90f1cf0c49bab8fb7a967d47724e075bcc437 Mon Sep 17 00:00:00 2001 From: Scott McKendry <39483124+scottmckendry@users.noreply.github.com> Date: Mon, 29 Apr 2024 08:22:21 +1200 Subject: [PATCH] feat: add support for nofify fixes #22 --- lua/cyberdream/theme.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/lua/cyberdream/theme.lua b/lua/cyberdream/theme.lua index 4534cee..451a121 100644 --- a/lua/cyberdream/theme.lua +++ b/lua/cyberdream/theme.lua @@ -271,6 +271,28 @@ function M.setup() HeirlineInsert = { bg = t.green }, HeirlineTerminal = { bg = t.cyan }, + -- Nvim Notify + NotifyDEBUGBody = { fg = t.fg }, + NotifyDEBUGBorder = { fg = t.bgHighlight }, + NotifyDEBUGIcon = { fg = t.grey }, + NotifyDEBUGTitle = { fg = t.grey }, + NotifyERRORBody = { fg = t.fg }, + NotifyERRORBorder = { fg = t.bgHighlight }, + NotifyERRORIcon = { fg = t.red }, + NotifyERRORTitle = { fg = t.pink }, + NotifyINFOBody = { fg = t.fg }, + NotifyINFOBorder = { fg = t.bgHighlight }, + NotifyINFOIcon = { fg = t.green }, + NotifyINFOTitle = { fg = t.cyan }, + NotifyTRACEBorder = { fg = t.bgHighlight }, + NotifyTRACEIcon = { fg = t.purple }, + NotifyTRACETitle = { fg = t.magenta }, + NotifyWARNBody = { fg = t.fg }, + NotifyWARNBorder = { fg = t.bgHighlight }, + NotifyWARNIcon = { fg = t.orange }, + NotifyWARNTitle = { fg = t.yellow }, + NotifyBackground = { bg = t.bg }, + -- TreeSitter Specific ["@variable"] = { fg = t.fg }, } @@ -316,6 +338,11 @@ function M.setup() vim.g.terminal_color_14 = t.cyan end + -- Use #000000 for full transparency + if opts.transparent then + theme.highlights.NotifyBackground = { bg = "#000000" } + end + -- Override highlights with user defined highlights theme.highlights = vim.tbl_deep_extend("force", theme.highlights, opts.theme.highlights or {})