-
Notifications
You must be signed in to change notification settings - Fork 434
/
notify.lua
35 lines (31 loc) · 1.58 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
local Util = require("tokyonight.util")
local M = {}
M.url = "https://github.com/rcarriga/nvim-notify"
---@type tokyonight.HighlightsFn
function M.get(c, opts)
-- stylua: ignore
return {
NotifyBackground = { fg = c.fg, bg = c.bg },
NotifyDEBUGBody = { fg = c.fg, bg = opts.transparent and c.none or c.bg },
NotifyDEBUGBorder = { fg = Util.blend_bg(c.comment, 0.3), bg = opts.transparent and c.none or c.bg },
NotifyDEBUGIcon = { fg = c.comment },
NotifyDEBUGTitle = { fg = c.comment },
NotifyERRORBody = { fg = c.fg, bg = opts.transparent and c.none or c.bg },
NotifyERRORBorder = { fg = Util.blend_bg(c.error, 0.3), bg = opts.transparent and c.none or c.bg },
NotifyERRORIcon = { fg = c.error },
NotifyERRORTitle = { fg = c.error },
NotifyINFOBody = { fg = c.fg, bg = opts.transparent and c.none or c.bg },
NotifyINFOBorder = { fg = Util.blend_bg(c.info, 0.3), bg = opts.transparent and c.none or c.bg },
NotifyINFOIcon = { fg = c.info },
NotifyINFOTitle = { fg = c.info },
NotifyTRACEBody = { fg = c.fg, bg = opts.transparent and c.none or c.bg },
NotifyTRACEBorder = { fg = Util.blend_bg(c.purple, 0.3), bg = opts.transparent and c.none or c.bg },
NotifyTRACEIcon = { fg = c.purple },
NotifyTRACETitle = { fg = c.purple },
NotifyWARNBody = { fg = c.fg, bg = opts.transparent and c.none or c.bg },
NotifyWARNBorder = { fg = Util.blend_bg(c.warning, 0.3), bg = opts.transparent and c.none or c.bg },
NotifyWARNIcon = { fg = c.warning },
NotifyWARNTitle = { fg = c.warning },
}
end
return M