-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabjuration.lua
108 lines (94 loc) · 3.4 KB
/
abjuration.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
-- Abjuration Color Scheme adapted from Base16
local view, colors, styles = view, lexer.colors, lexer.styles
-- Base16 colors
colors.base00 = 0xf7f7f7
colors.base01 = 0xe3e3e3
colors.base02 = 0xb9b9b9
colors.base03 = 0x988a5d
colors.base04 = 0x525252
colors.base05 = 0x464646
colors.base06 = 0x252525
colors.base07 = 0x101010
colors.base08 = 0x7c7c7c
colors.base09 = 0x999999
colors.base0A = 0xa0a0a0
colors.base0B = 0x8e8e8e
colors.base0C = 0x868686
colors.base0D = 0x686868
colors.base0E = 0x596781
colors.base0F = 0x5e5e5e
-- Default font.
if not font then
font = WIN32 and 'Courier New' or OSX and 'Monaco' or
'Bitstream Vera Sans Mono'
end
if not size then size = not OSX and 10 or 12 end
-- Predefined styles.
styles.default = {
font = font, size = size, fore = colors.base05, back = colors.base00
}
styles.line_number = {fore = colors.base04, back = colors.base00}
--styles.control_char =
styles.indent_guide = {fore = colors.base03}
styles.call_tip = {fore = colors.base04, back = colors.base01}
styles.fold_display_text = {fore = colors.base01}
-- Token styles.
styles.class = {fore = colors.base0A}
styles.comment = {fore = colors.base03}
styles.constant = {fore = colors.base09}
styles.embedded = {fore = colors.base0F, back = colors.base01}
styles.error = {fore = colors.base08, italics = true}
styles['function'] = {fore = colors.base0D}
styles.identifier = {}
styles.keyword = {fore = colors.base0E}
styles.label = {fore = colors.base08}
styles.number = {fore = colors.base09}
styles.operator = {fore = colors.base05}
styles.preprocessor = {fore = colors.base0B}
styles.regex = {fore = colors.base0C}
styles.string = {fore = colors.base0B}
styles.type = {fore = colors.base0A}
styles.variable = {fore = colors.base08}
styles.whitespace = {}
-- Multiple Selection and Virtual Space
--view.additional_sel_alpha =
--view.additional_sel_fore =
--view.additional_sel_back =
--view.additional_caret_fore =
-- Caret and Selection Styles.
view:set_sel_fore(true, colors.base06)
view:set_sel_back(true, colors.base02)
--view.sel_alpha =
view.caret_fore = colors.base05
view.caret_line_back = colors.base01
--view.caret_line_back_alpha =
-- Fold Margin.
view:set_fold_margin_color(true, colors.base00)
view:set_fold_margin_hi_color(true, colors.base00)
-- Markers.
--view.marker_fore[textadept.bookmarks.MARK_BOOKMARK] = colors.base00
view.marker_back[textadept.bookmarks.MARK_BOOKMARK] = colors.base0B
--view.marker_fore[textadept.run.MARK_WARNING] = colors.base00
view.marker_back[textadept.run.MARK_WARNING] = colors.base0E
--view.marker_fore[textadept.run.MARK_ERROR] = colors.base00
view.marker_back[textadept.run.MARK_ERROR] = colors.base08
for i = view.MARKNUM_FOLDEREND, view.MARKNUM_FOLDEROPEN do -- fold margin
view.marker_fore[i] = colors.base00
view.marker_back[i] = colors.base03
view.marker_back_selected[i] = colors.base02
end
-- Indicators.
view.indic_fore[ui.find.INDIC_FIND] = colors.base09
view.indic_alpha[ui.find.INDIC_FIND] = 255
view.indic_fore[textadept.editing.INDIC_BRACEMATCH] = colors.base06
view.indic_fore[textadept.editing.INDIC_HIGHLIGHT] = colors.base07
view.indic_alpha[textadept.editing.INDIC_HIGHLIGHT] = 28
view.indic_fore[textadept.snippets.INDIC_PLACEHOLDER] = colors.base04
-- Call tips.
view.call_tip_fore_hlt = colors.base06
-- Long Lines.
view.edge_color = colors.base02
-- Add red, green, and yellow for diff lexer.
colors.red = colors.base08
colors.green = colors.base0B
colors.yellow = colors.base0E