-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
notify.lua
37 lines (34 loc) · 1.18 KB
/
notify.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
local M = {}
--- Get extension configuration
--- @param opts Config
--- @param t CyberdreamPalette
function M.get(opts, t)
opts = opts or {}
local highlights = {
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 },
}
if opts.transparent then
highlights.NotifyBackground = { bg = "#000000" }
end
return highlights
end
return M