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
47
48
49
50
51
52
53
|
-- Generated by wallust from your system color scheme. Do not edit by hand.
-- Source of truth: wallust/.config/wallust/templates/vis-theme.lua
local lexers = vis.lexers
-- Blend two #rrggbb colors; t = weight of b (0..1).
local function mix(a, b, t)
local function parse(c)
c = c:gsub('#', '')
return tonumber(c:sub(1, 2), 16), tonumber(c:sub(3, 4), 16), tonumber(c:sub(5, 6), 16)
end
local ar, ag, ab = parse(a)
local br, bg_, bb = parse(b)
local function ch(x, y)
return string.format('%02x', math.floor(x + (y - x) * t + 0.5))
end
return '#' .. ch(ar, br) .. ch(ag, bg_) .. ch(ab, bb)
end
lexers.STYLE_DEFAULT = 'fore:{{foreground}},back:{{background}}'
lexers.STYLE_NOTHING = 'back:{{background}}'
lexers.STYLE_CLASS = 'fore:{{color6}}'
lexers.STYLE_COMMENT = 'fore:{{color8}},italics'
lexers.STYLE_CONSTANT = 'fore:{{color13}}'
lexers.STYLE_DEFINITION = 'fore:{{color3}}'
lexers.STYLE_ERROR = 'fore:{{color1}},bold'
lexers.STYLE_FUNCTION = 'fore:{{color4}}'
lexers.STYLE_KEYWORD = 'fore:{{color5}},bold'
lexers.STYLE_LABEL = 'fore:{{color4}}'
lexers.STYLE_NUMBER = 'fore:{{color1}}'
lexers.STYLE_OPERATOR = 'fore:{{color6}}'
lexers.STYLE_REGEX = 'fore:{{color2}}'
lexers.STYLE_STRING = 'fore:{{color2}}'
lexers.STYLE_PREPROCESSOR = 'fore:{{color5}},bold'
lexers.STYLE_TAG = 'fore:{{color1}},bold'
lexers.STYLE_TYPE = 'fore:{{color3}},bold'
lexers.STYLE_VARIABLE = 'fore:{{foreground}}'
lexers.STYLE_WHITESPACE = ''
lexers.STYLE_EMBEDDED = 'fore:{{color13}}'
lexers.STYLE_IDENTIFIER = ''
lexers.STYLE_LINENUMBER = 'fore:' .. mix('{{background}}', '{{color8}}', 0.35)
lexers.STYLE_LINENUMBER_CURSOR = 'fore:{{color8}}'
lexers.STYLE_CURSOR = 'back:{{color4}}'
lexers.STYLE_CURSOR_PRIMARY = 'fore:{{background}},back:{{color6}},bold'
lexers.STYLE_CURSOR_LINE = 'back:{{color0}}'
lexers.STYLE_COLOR_COLUMN = 'back:{{color0}}'
lexers.STYLE_SELECTION = 'back:{{color4}}'
lexers.STYLE_STATUS = 'back:{{color0}},fore:{{foreground}}'
lexers.STYLE_STATUS_FOCUSED = 'back:{{color0}},fore:{{color6}},bold'
lexers.STYLE_SEPARATOR = ''
lexers.STYLE_INFO = 'bold'
lexers.STYLE_EOF = 'fore:{{color8}}'
|