Skip to content

Commit

Permalink
feat: add support for nofify
Browse files Browse the repository at this point in the history
fixes #22
  • Loading branch information
scottmckendry committed Apr 28, 2024
1 parent 8008e70 commit dab90f1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lua/cyberdream/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
}
Expand Down Expand Up @@ -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 {})

Expand Down

0 comments on commit dab90f1

Please sign in to comment.