forked from scottmckendry/cyberdream.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
markview.lua
46 lines (39 loc) · 1.93 KB
/
markview.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
38
39
40
41
42
43
44
45
46
local M = {}
local util = require("cyberdream.util")
--- Get extension configuration
--- @param opts Config
--- @param t CyberdreamPalette
function M.get(opts, t)
opts = opts or {}
local highlights = {
MarkviewHeading1 = { fg = t.orange, bg = util.blend(t.bg_solid, t.orange, 0.8), bold = true },
MarkviewHeading2 = { fg = t.cyan, bg = util.blend(t.bg_solid, t.cyan, 0.8), bold = true },
MarkviewHeading3 = { fg = t.blue, bg = util.blend(t.bg_solid, t.blue, 0.8), bold = true },
MarkviewHeading4 = { fg = t.purple, bg = util.blend(t.bg_solid, t.purple, 0.8), bold = true },
MarkviewHeading5 = { fg = t.magenta, bg = util.blend(t.bg_solid, t.magenta, 0.8), bold = true },
MarkviewHeading6 = { fg = t.green, bg = util.blend(t.bg_solid, t.green, 0.8), bold = true },
MarkviewHeading1Sign = { fg = t.orange },
MarkviewHeading2Sign = { fg = t.cyan },
MarkviewHeading3Sign = { fg = t.blue },
MarkviewHeading4Sign = { fg = t.purple },
MarkviewHeading5Sign = { fg = t.magenta },
MarkviewHeading6Sign = { fg = t.green },
MarkviewBlockQuoteDefault = { link = "Comment" },
MarkviewBlockQuoteOk = { fg = t.green },
MarkviewBlockQuoteWarn = { fg = t.yellow },
MarkviewBlockQuoteError = { fg = t.red },
MarkviewBlockQuoteNote = { fg = t.blue },
MarkviewBlockQuoteSpecial = { fg = t.cyan },
MarkviewCode = { bg = util.blend(t.bgAlt, t.bgHighlight, 0.8) },
MarkviewInlineCode = { fg = t.pink, bg = util.blend(t.bgAlt, t.bgHighlight, 0.8) },
MarkviewTableBorder = { fg = t.bgHighlight },
MarkviewTableAlignLeft = { fg = t.green },
MarkviewTableAlignCenter = { fg = t.blue },
MarkviewTableAlignRight = { fg = t.purple },
}
for i = 1, 10 do
highlights["MarkviewGradient" .. i] = { fg = util.blend(t.grey, t.bg_solid, i / 10) }
end
return highlights
end
return M