annotate vendor/vim-colors/PaperColor.vim @ 682:88888f40c628

[vimrc] Disable indent plugin Less predictable behavior with it enabled.
author nanaya <me@nanaya.pro>
date Fri, 24 Jun 2022 22:50:19 +0900
parents 6cdd7d26260d
children 17cacf387f7c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
662
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1 " Theme: PaperColor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2 " Author: Nikyle Nguyen <NLKNguyen@MSN.com>
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
3 " License: MIT
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
4 " Source: http://github.com/NLKNguyen/papercolor-theme
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
5
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
6 let s:version = '0.9.x'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
7
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
8 " Note on navigating this source code:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
9 " - Use folding feature to collapse/uncollapse blocks of marked code
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
10 " zM to fold all markers in this file to see the structure of the source code
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
11 " zR to unfold all recursively
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
12 " za to toggle a fold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
13 " See: http://vim.wikia.com/wiki/Folding
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
14 " - The main section is at the end where the functions are called in order.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
15
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
16 " Theme Repository: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
17
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
18 let s:themes = {}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
19
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
20 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
21
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
22 fun! s:register_default_theme()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
23 " Theme name should be lowercase
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
24 let s:themes['default'] = {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
25 \ 'maintainer' : 'Nikyle Nguyen <me@Nikyle.com>',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
26 \ 'source' : 'http://github.com/NLKNguyen/papercolor-theme',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
27 \ 'description' : 'The original PaperColor Theme, inspired by Google Material Design',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
28 \ 'options' : {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
29 \ 'allow_bold': 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
30 \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
31 \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
32
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
33 " Theme can have 'light' and/or 'dark' color palette.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
34 " Color values can be HEX and/or 256-color. Use empty string '' if not provided.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
35 " Only color00 -> color15 are required. The rest are optional.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
36 let s:themes['default'].light = {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
37 \ 'NO_CONVERSION': 1,
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
38 \ 'TEST_256_COLOR_CONSISTENCY' : 1,
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
39 \ 'palette' : {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
40 \ 'color00' : ['#eeeeee', '255'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
41 \ 'color01' : ['#af0000', '124'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
42 \ 'color02' : ['#008700', '28'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
43 \ 'color03' : ['#5f8700', '64'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
44 \ 'color04' : ['#0087af', '31'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
45 \ 'color05' : ['#878787', '102'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
46 \ 'color06' : ['#005f87', '24'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
47 \ 'color07' : ['#444444', '238'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
48 \ 'color08' : ['#bcbcbc', '250'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
49 \ 'color09' : ['#d70000', '160'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
50 \ 'color10' : ['#d70087', '162'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
51 \ 'color11' : ['#8700af', '91'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
52 \ 'color12' : ['#d75f00', '166'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
53 \ 'color13' : ['#d75f00', '166'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
54 \ 'color14' : ['#005faf', '25'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
55 \ 'color15' : ['#005f87', '24'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
56 \ 'color16' : ['#0087af', '31'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
57 \ 'color17' : ['#008700', '28'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
58 \ 'cursor_fg' : ['#eeeeee', '255'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
59 \ 'cursor_bg' : ['#005f87', '24'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
60 \ 'cursorline' : ['#e4e4e4', '254'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
61 \ 'cursorcolumn' : ['#e4e4e4', '254'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
62 \ 'cursorlinenr_fg' : ['#af5f00', '130'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
63 \ 'cursorlinenr_bg' : ['#eeeeee', '255'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
64 \ 'popupmenu_fg' : ['#444444', '238'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
65 \ 'popupmenu_bg' : ['#d0d0d0', '252'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
66 \ 'search_fg' : ['#444444', '238'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
67 \ 'search_bg' : ['#ffff5f', '227'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
68 \ 'linenumber_fg' : ['#b2b2b2', '249'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
69 \ 'linenumber_bg' : ['#eeeeee', '255'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
70 \ 'vertsplit_fg' : ['#005f87', '24'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
71 \ 'vertsplit_bg' : ['#eeeeee', '255'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
72 \ 'statusline_active_fg' : ['#e4e4e4', '254'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
73 \ 'statusline_active_bg' : ['#005f87', '24'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
74 \ 'statusline_inactive_fg' : ['#444444', '238'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
75 \ 'statusline_inactive_bg' : ['#d0d0d0', '252'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
76 \ 'todo_fg' : ['#00af5f', '35'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
77 \ 'todo_bg' : ['#eeeeee', '255'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
78 \ 'error_fg' : ['#af0000', '124'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
79 \ 'error_bg' : ['#ffd7ff', '225'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
80 \ 'matchparen_bg' : ['#c6c6c6', '251'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
81 \ 'matchparen_fg' : ['#005f87', '24'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
82 \ 'visual_fg' : ['#eeeeee', '255'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
83 \ 'visual_bg' : ['#0087af', '31'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
84 \ 'folded_fg' : ['#0087af', '31'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
85 \ 'folded_bg' : ['#afd7ff', '153'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
86 \ 'wildmenu_fg': ['#444444', '238'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
87 \ 'wildmenu_bg': ['#ffff00', '226'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
88 \ 'spellbad': ['#ffafd7', '218'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
89 \ 'spellcap': ['#ffffaf', '229'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
90 \ 'spellrare': ['#afff87', '156'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
91 \ 'spelllocal': ['#d7d7ff', '189'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
92 \ 'diffadd_fg': ['#008700', '28'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
93 \ 'diffadd_bg': ['#afffaf', '157'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
94 \ 'diffdelete_fg': ['#af0000', '124'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
95 \ 'diffdelete_bg': ['#ffd7ff', '225'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
96 \ 'difftext_fg': ['#0087af', '31'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
97 \ 'difftext_bg': ['#ffffd7', '230'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
98 \ 'diffchange_fg': ['#444444', '238'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
99 \ 'diffchange_bg': ['#ffd787', '222'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
100 \ 'tabline_bg': ['#005f87', '24'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
101 \ 'tabline_active_fg': ['#444444', '238'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
102 \ 'tabline_active_bg': ['#e4e4e4', '254'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
103 \ 'tabline_inactive_fg': ['#eeeeee', '255'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
104 \ 'tabline_inactive_bg': ['#0087af', '31'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
105 \ 'buftabline_bg': ['#005f87', '24'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
106 \ 'buftabline_current_fg': ['#444444', '238'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
107 \ 'buftabline_current_bg': ['#e4e4e4', '254'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
108 \ 'buftabline_active_fg': ['#eeeeee', '255'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
109 \ 'buftabline_active_bg': ['#005faf', '25'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
110 \ 'buftabline_inactive_fg': ['#eeeeee', '255'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
111 \ 'buftabline_inactive_bg': ['#0087af', '31']
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
112 \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
113 \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
114
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
115 " TODO: idea for subtheme options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
116 " let s:themes['default'].light.subtheme = {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
117 " \ 'alternative' : {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
118 " \ 'options' : {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
119 " \ 'transparent_background': 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
120 " \ },
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
121 " \ 'palette' : {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
122 " \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
123 " \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
124 " \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
125
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
126 let s:themes['default'].dark = {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
127 \ 'NO_CONVERSION': 1,
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
128 \ 'TEST_256_COLOR_CONSISTENCY' : 1,
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
129 \ 'palette' : {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
130 \ 'color00' : ['#1c1c1c', '234'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
131 \ 'color01' : ['#af005f', '125'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
132 \ 'color02' : ['#5faf00', '70'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
133 \ 'color03' : ['#d7af5f', '179'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
134 \ 'color04' : ['#5fafd7', '74'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
135 \ 'color05' : ['#808080', '244'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
136 \ 'color06' : ['#d7875f', '173'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
137 \ 'color07' : ['#d0d0d0', '252'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
138 \ 'color08' : ['#585858', '240'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
139 \ 'color09' : ['#5faf5f', '71'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
140 \ 'color10' : ['#afd700', '148'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
141 \ 'color11' : ['#af87d7', '140'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
142 \ 'color12' : ['#ffaf00', '214'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
143 \ 'color13' : ['#ff5faf', '205'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
144 \ 'color14' : ['#00afaf', '37'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
145 \ 'color15' : ['#5f8787', '66'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
146 \ 'color16' : ['#5fafd7', '74'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
147 \ 'color17' : ['#d7af00', '178'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
148 \ 'cursor_fg' : ['#1c1c1c', '234'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
149 \ 'cursor_bg' : ['#c6c6c6', '251'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
150 \ 'cursorline' : ['#303030', '236'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
151 \ 'cursorcolumn' : ['#303030', '236'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
152 \ 'cursorlinenr_fg' : ['#ffff00', '226'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
153 \ 'cursorlinenr_bg' : ['#1c1c1c', '234'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
154 \ 'popupmenu_fg' : ['#c6c6c6', '251'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
155 \ 'popupmenu_bg' : ['#303030', '236'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
156 \ 'search_fg' : ['#000000', '16'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
157 \ 'search_bg' : ['#00875f', '29'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
158 \ 'linenumber_fg' : ['#585858', '240'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
159 \ 'linenumber_bg' : ['#1c1c1c', '234'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
160 \ 'vertsplit_fg' : ['#5f8787', '66'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
161 \ 'vertsplit_bg' : ['#1c1c1c', '234'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
162 \ 'statusline_active_fg' : ['#1c1c1c', '234'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
163 \ 'statusline_active_bg' : ['#5f8787', '66'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
164 \ 'statusline_inactive_fg' : ['#bcbcbc', '250'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
165 \ 'statusline_inactive_bg' : ['#3a3a3a', '237'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
166 \ 'todo_fg' : ['#ff8700', '208'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
167 \ 'todo_bg' : ['#1c1c1c', '234'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
168 \ 'error_fg' : ['#af005f', '125'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
169 \ 'error_bg' : ['#5f0000', '52'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
170 \ 'matchparen_bg' : ['#4e4e4e', '239'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
171 \ 'matchparen_fg' : ['#c6c6c6', '251'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
172 \ 'visual_fg' : ['#000000', '16'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
173 \ 'visual_bg' : ['#8787af', '103'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
174 \ 'folded_fg' : ['#d787ff', '177'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
175 \ 'folded_bg' : ['#5f005f', '53'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
176 \ 'wildmenu_fg': ['#1c1c1c', '234'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
177 \ 'wildmenu_bg': ['#afd700', '148'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
178 \ 'spellbad': ['#5f0000', '52'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
179 \ 'spellcap': ['#5f005f', '53'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
180 \ 'spellrare': ['#005f00', '22'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
181 \ 'spelllocal': ['#00005f', '17'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
182 \ 'diffadd_fg': ['#87d700', '112'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
183 \ 'diffadd_bg': ['#005f00', '22'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
184 \ 'diffdelete_fg': ['#af005f', '125'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
185 \ 'diffdelete_bg': ['#5f0000', '52'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
186 \ 'difftext_fg': ['#5fffff', '87'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
187 \ 'difftext_bg': ['#008787', '30'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
188 \ 'diffchange_fg': ['#d0d0d0', '252'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
189 \ 'diffchange_bg': ['#005f5f', '23'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
190 \ 'tabline_bg': ['#262626', '235'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
191 \ 'tabline_active_fg': ['#121212', '233'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
192 \ 'tabline_active_bg': ['#00afaf', '37'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
193 \ 'tabline_inactive_fg': ['#bcbcbc', '250'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
194 \ 'tabline_inactive_bg': ['#585858', '240'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
195 \ 'buftabline_bg': ['#262626', '235'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
196 \ 'buftabline_current_fg': ['#121212', '233'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
197 \ 'buftabline_current_bg': ['#00afaf', '37'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
198 \ 'buftabline_active_fg': ['#00afaf', '37'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
199 \ 'buftabline_active_bg': ['#585858', '240'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
200 \ 'buftabline_inactive_fg': ['#bcbcbc', '250'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
201 \ 'buftabline_inactive_bg': ['#585858', '240']
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
202 \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
203 \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
204 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
205
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
206 " ============================ THEME REGISTER =================================
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
207
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
208 " Acquire Theme Data: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
209
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
210 " Brief:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
211 " Function to get theme information and store in variables for other
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
212 " functions to use
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
213 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
214 " Require:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
215 " s:themes <dictionary> collection of all theme palettes
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
216 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
217 " Require Optionally:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
218 " {g:PaperColor_Theme_[s:theme_name]} <dictionary> user custom theme palette
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
219 " g:PaperColor_Theme_Options <dictionary> user options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
220 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
221 " Expose:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
222 " s:theme_name <string> the name of the selected theme
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
223 " s:selected_theme <dictionary> the selected theme object (contains palette, etc.)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
224 " s:selected_variant <string> 'light' or 'dark'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
225 " s:palette <dictionary> the palette of selected theme
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
226 " s:options <dictionary> user options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
227 fun! s:acquire_theme_data()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
228
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
229 " Get theme name: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
230 let s:theme_name = 'default'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
231
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
232 if exists("g:PaperColor_Theme") " Users expressed theme preference
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
233 let lowercase_theme_name = tolower(g:PaperColor_Theme)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
234
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
235 if lowercase_theme_name !=? 'default'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
236 let theme_identifier = 'PaperColor_' . lowercase_theme_name
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
237 let autoload_function = theme_identifier . '#register'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
238
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
239 call {autoload_function}()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
240
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
241 let theme_variable = 'g:' . theme_identifier
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
242
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
243 if exists(theme_variable)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
244 let s:theme_name = lowercase_theme_name
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
245 let s:themes[s:theme_name] = {theme_variable}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
246 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
247
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
248 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
249
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
250 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
251 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
252
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
253 if s:theme_name ==? 'default'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
254 " Either no other theme is specified or they failed to load
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
255 " Defer loading default theme until now
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
256 call s:register_default_theme()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
257 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
258
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
259 let s:selected_theme = s:themes[s:theme_name]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
260
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
261 " Get Theme Variant: either dark or light {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
262 let s:selected_variant = 'dark'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
263
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
264 let s:is_dark=(&background == 'dark')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
265
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
266 if s:is_dark
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
267 if has_key(s:selected_theme, 'dark')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
268 let s:selected_variant = 'dark'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
269 else " in case the theme only provides the other variant
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
270 let s:selected_variant = 'light'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
271 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
272
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
273 else " is light background
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
274 if has_key(s:selected_theme, 'light')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
275 let s:selected_variant = 'light'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
276 else " in case the theme only provides the other variant
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
277 let s:selected_variant = 'dark'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
278 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
279 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
280
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
281 let s:palette = s:selected_theme[s:selected_variant].palette
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
282
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
283 " Systematic User-Config Options: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
284 " Example config in .vimrc
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
285 " let g:PaperColor_Theme_Options = {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
286 " \ 'theme': {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
287 " \ 'default': {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
288 " \ 'allow_bold': 1,
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
289 " \ 'allow_italic': 0,
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
290 " \ 'transparent_background': 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
291 " \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
292 " \ },
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
293 " \ 'language': {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
294 " \ 'python': {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
295 " \ 'highlight_builtins' : 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
296 " \ },
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
297 " \ 'c': {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
298 " \ 'highlight_builtins' : 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
299 " \ },
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
300 " \ 'cpp': {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
301 " \ 'highlight_standard_library': 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
302 " \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
303 " \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
304 " \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
305 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
306 let s:options = {}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
307
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
308
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
309 if exists("g:PaperColor_Theme_Options")
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
310 let s:options = g:PaperColor_Theme_Options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
311 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
312 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
313
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
314 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
315 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
316
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
317
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
318 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
319
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
320 " Identify Color Mode: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
321
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
322 fun! s:identify_color_mode()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
323 let s:MODE_16_COLOR = 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
324 let s:MODE_256_COLOR = 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
325 let s:MODE_GUI_COLOR = 2
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
326
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
327 if has("gui_running") || has('termguicolors') && &termguicolors || has('nvim') && $NVIM_TUI_ENABLE_TRUE_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
328 let s:mode = s:MODE_GUI_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
329 elseif (&t_Co >= 256)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
330 let s:mode = s:MODE_256_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
331 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
332 let s:mode = s:MODE_16_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
333 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
334 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
335
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
336 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
337
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
338 " ============================ OPTION HANDLER =================================
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
339
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
340 " Generate Them Option Variables: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
341
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
342
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
343 fun! s:generate_theme_option_variables()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
344 " 0. All possible theme option names must be registered here
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
345 let l:available_theme_options = [
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
346 \ 'allow_bold',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
347 \ 'allow_italic',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
348 \ 'transparent_background',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
349 \ ]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
350
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
351 " 1. Generate variables and set to default value
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
352 for l:option in l:available_theme_options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
353 let s:{'themeOpt_' . l:option} = 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
354 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
355
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
356 let s:themeOpt_override = {} " special case, this has to be a dictionary
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
357
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
358 " 2. Reassign value to the above variables based on theme settings
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
359
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
360 " 2.1 In case the theme has top-level options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
361 if has_key(s:selected_theme, 'options')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
362 let l:theme_options = s:selected_theme['options']
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
363 for l:opt_name in keys(l:theme_options)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
364 let s:{'themeOpt_' . l:opt_name} = l:theme_options[l:opt_name]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
365 " echo 's:themeOpt_' . l:opt_name . ' = ' . s:{'themeOpt_' . l:opt_name}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
366 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
367 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
368
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
369 " 2.2 In case the theme has specific variant options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
370 if has_key(s:selected_theme[s:selected_variant], 'options')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
371 let l:theme_options = s:selected_theme[s:selected_variant]['options']
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
372 for l:opt_name in keys(l:theme_options)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
373 let s:{'themeOpt_' . l:opt_name} = l:theme_options[l:opt_name]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
374 " echo 's:themeOpt_' . l:opt_name . ' = ' . s:{'themeOpt_' . l:opt_name}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
375 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
376 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
377
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
378
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
379 " 3. Reassign value to the above variables which the user customizes
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
380 " Part of user-config options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
381 let s:theme_options = {}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
382 if has_key(s:options, 'theme')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
383 let s:theme_options = s:options['theme']
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
384 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
385
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
386 " 3.1 In case user sets for a theme without specifying which variant
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
387 if has_key(s:theme_options, s:theme_name)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
388 let l:theme_options = s:theme_options[s:theme_name]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
389 for l:opt_name in keys(l:theme_options)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
390 let s:{'themeOpt_' . l:opt_name} = l:theme_options[l:opt_name]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
391 " echo 's:themeOpt_' . l:opt_name . ' = ' . s:{'themeOpt_' . l:opt_name}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
392 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
393 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
394
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
395
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
396 " 3.2 In case user sets for a specific variant of a theme
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
397
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
398 " Create the string that the user might have set for this theme variant
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
399 " for example, 'default.dark'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
400 let l:specific_theme_variant = s:theme_name . '.' . s:selected_variant
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
401
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
402 if has_key(s:theme_options, l:specific_theme_variant)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
403 let l:theme_options = s:theme_options[l:specific_theme_variant]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
404 for l:opt_name in keys(l:theme_options)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
405 let s:{'themeOpt_' . l:opt_name} = l:theme_options[l:opt_name]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
406 " echo 's:themeOpt_' . l:opt_name . ' = ' . s:{'themeOpt_' . l:opt_name}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
407 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
408 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
409
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
410 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
411 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
412
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
413 " Check If Theme Has Hint: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
414 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
415 " Brief:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
416 " Function to Check if the selected theme and variant has a hint
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
417 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
418 " Details:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
419 " A hint is a known key that has value 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
420 " It is not part of theme design but is used for technical purposes
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
421 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
422 " Example:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
423 " If a theme has hint 'NO_CONVERSION', then we can assume that every
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
424 " color value is a complete pair, so we don't have to check.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
425
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
426 fun! s:theme_has_hint(hint)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
427 return has_key(s:selected_theme[s:selected_variant], a:hint) &&
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
428 \ s:selected_theme[s:selected_variant][a:hint] == 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
429 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
430 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
431
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
432 " Set Overriding Colors: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
433
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
434 fun! s:set_overriding_colors()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
435
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
436 if s:theme_has_hint('NO_CONVERSION')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
437 " s:convert_colors will not do anything, so we take care of conversion
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
438 " for the overriding colors that need to be converted
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
439
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
440 if s:mode == s:MODE_GUI_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
441 " if GUI color is not provided, convert from 256 color that must be available
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
442 if !empty(s:themeOpt_override)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
443 call s:load_256_to_GUI_converter()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
444 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
445
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
446 for l:color in keys(s:themeOpt_override)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
447 let l:value = s:themeOpt_override[l:color]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
448 if l:value[0] == ''
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
449 let l:value[0] = s:to_HEX[l:value[1]]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
450 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
451 let s:palette[l:color] = l:value
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
452 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
453
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
454 elseif s:mode == s:MODE_256_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
455 " if 256 color is not provided, convert from GUI color that must be available
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
456 if !empty(s:themeOpt_override)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
457 call s:load_GUI_to_256_converter()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
458 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
459
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
460 for l:color in keys(s:themeOpt_override)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
461 let l:value = s:themeOpt_override[l:color]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
462 if l:value[1] == ''
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
463 let l:value[1] = s:to_256(l:value[0])
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
464 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
465 let s:palette[l:color] = l:value
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
466 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
467 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
468
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
469 else " simply set the colors and let s:convert_colors() take care of conversion
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
470
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
471 for l:color in keys(s:themeOpt_override)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
472 let s:palette[l:color] = s:themeOpt_override[l:color]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
473 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
474 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
475
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
476 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
477 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
478
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
479 " Generate Language Option Variables: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
480
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
481 " Brief:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
482 " Function to generate language option variables so that there is no need to
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
483 " look up from the dictionary every time the option value is checked in the
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
484 " function s:apply_syntax_highlightings()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
485 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
486 " Require:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
487 " s:options <dictionary> user options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
488 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
489 " Require Optionally:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
490 " g:PaperColor_Theme_Options <dictionary> user option config in .vimrc
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
491 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
492 " Expose:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
493 " s:langOpt_[LANGUAGE]__[OPTION] <any> variables for language options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
494 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
495 " Example:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
496 " g:PaperColor_Theme_Options has something like this:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
497 " 'language': {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
498 " \ 'python': {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
499 " \ 'highlight_builtins': 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
500 " \ }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
501 " }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
502 " The following variable will be generated:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
503 " s:langOpt_python__highlight_builtins = 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
504
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
505 fun! s:generate_language_option_variables()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
506 " 0. All possible theme option names must be registered here
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
507 let l:available_language_options = [
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
508 \ 'c__highlight_builtins',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
509 \ 'cpp__highlight_standard_library',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
510 \ 'python__highlight_builtins'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
511 \ ]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
512
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
513 " 1. Generate variables and set to default value
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
514 for l:option in l:available_language_options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
515 let s:{'langOpt_' . l:option} = 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
516 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
517
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
518 " Part of user-config options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
519 if has_key(s:options, 'language')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
520 let l:language_options = s:options['language']
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
521 " echo l:language_options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
522 for l:lang in keys(l:language_options)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
523 let l:options = l:language_options[l:lang]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
524 " echo l:lang
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
525 " echo l:options
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
526 for l:option in keys(l:options)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
527 let s:{'langOpt_' . l:lang . '__' . l:option} = l:options[l:option]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
528 " echo 's:langOpt_' . l:lang . '__' . l:option . ' = ' . l:options[l:option]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
529 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
530 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
531
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
532 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
533
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
534 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
535 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
536
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
537 " =========================== COLOR CONVERTER =================================
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
538
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
539 fun! s:load_GUI_to_256_converter()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
540 " GUI-color To 256-color: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
541 " Returns an approximate grey index for the given grey level
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
542 fun! s:grey_number(x)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
543 if &t_Co == 88
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
544 if a:x < 23
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
545 return 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
546 elseif a:x < 69
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
547 return 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
548 elseif a:x < 103
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
549 return 2
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
550 elseif a:x < 127
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
551 return 3
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
552 elseif a:x < 150
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
553 return 4
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
554 elseif a:x < 173
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
555 return 5
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
556 elseif a:x < 196
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
557 return 6
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
558 elseif a:x < 219
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
559 return 7
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
560 elseif a:x < 243
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
561 return 8
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
562 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
563 return 9
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
564 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
565 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
566 if a:x < 14
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
567 return 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
568 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
569 let l:n = (a:x - 8) / 10
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
570 let l:m = (a:x - 8) % 10
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
571 if l:m < 5
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
572 return l:n
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
573 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
574 return l:n + 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
575 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
576 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
577 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
578 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
579
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
580 " Returns the actual grey level represented by the grey index
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
581 fun! s:grey_level(n)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
582 if &t_Co == 88
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
583 if a:n == 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
584 return 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
585 elseif a:n == 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
586 return 46
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
587 elseif a:n == 2
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
588 return 92
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
589 elseif a:n == 3
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
590 return 115
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
591 elseif a:n == 4
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
592 return 139
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
593 elseif a:n == 5
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
594 return 162
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
595 elseif a:n == 6
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
596 return 185
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
597 elseif a:n == 7
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
598 return 208
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
599 elseif a:n == 8
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
600 return 231
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
601 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
602 return 255
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
603 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
604 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
605 if a:n == 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
606 return 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
607 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
608 return 8 + (a:n * 10)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
609 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
610 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
611 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
612
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
613 " Returns the palette index for the given grey index
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
614 fun! s:grey_colour(n)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
615 if &t_Co == 88
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
616 if a:n == 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
617 return 16
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
618 elseif a:n == 9
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
619 return 79
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
620 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
621 return 79 + a:n
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
622 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
623 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
624 if a:n == 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
625 return 16
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
626 elseif a:n == 25
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
627 return 231
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
628 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
629 return 231 + a:n
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
630 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
631 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
632 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
633
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
634 " Returns an approximate colour index for the given colour level
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
635 fun! s:rgb_number(x)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
636 if &t_Co == 88
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
637 if a:x < 69
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
638 return 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
639 elseif a:x < 172
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
640 return 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
641 elseif a:x < 230
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
642 return 2
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
643 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
644 return 3
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
645 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
646 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
647 if a:x < 75
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
648 return 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
649 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
650 let l:n = (a:x - 55) / 40
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
651 let l:m = (a:x - 55) % 40
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
652 if l:m < 20
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
653 return l:n
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
654 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
655 return l:n + 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
656 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
657 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
658 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
659 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
660
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
661 " Returns the actual colour level for the given colour index
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
662 fun! s:rgb_level(n)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
663 if &t_Co == 88
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
664 if a:n == 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
665 return 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
666 elseif a:n == 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
667 return 139
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
668 elseif a:n == 2
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
669 return 205
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
670 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
671 return 255
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
672 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
673 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
674 if a:n == 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
675 return 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
676 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
677 return 55 + (a:n * 40)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
678 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
679 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
680 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
681
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
682 " Returns the palette index for the given R/G/B colour indices
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
683 fun! s:rgb_colour(x, y, z)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
684 if &t_Co == 88
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
685 return 16 + (a:x * 16) + (a:y * 4) + a:z
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
686 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
687 return 16 + (a:x * 36) + (a:y * 6) + a:z
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
688 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
689 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
690
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
691 " Returns the palette index to approximate the given R/G/B colour levels
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
692 fun! s:colour(r, g, b)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
693 " Get the closest grey
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
694 let l:gx = s:grey_number(a:r)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
695 let l:gy = s:grey_number(a:g)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
696 let l:gz = s:grey_number(a:b)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
697
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
698 " Get the closest colour
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
699 let l:x = s:rgb_number(a:r)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
700 let l:y = s:rgb_number(a:g)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
701 let l:z = s:rgb_number(a:b)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
702
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
703 if l:gx == l:gy && l:gy == l:gz
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
704 " There are two possibilities
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
705 let l:dgr = s:grey_level(l:gx) - a:r
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
706 let l:dgg = s:grey_level(l:gy) - a:g
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
707 let l:dgb = s:grey_level(l:gz) - a:b
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
708 let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
709 let l:dr = s:rgb_level(l:gx) - a:r
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
710 let l:dg = s:rgb_level(l:gy) - a:g
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
711 let l:db = s:rgb_level(l:gz) - a:b
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
712 let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
713 if l:dgrey < l:drgb
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
714 " Use the grey
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
715 return s:grey_colour(l:gx)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
716 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
717 " Use the colour
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
718 return s:rgb_colour(l:x, l:y, l:z)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
719 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
720 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
721 " Only one possibility
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
722 return s:rgb_colour(l:x, l:y, l:z)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
723 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
724 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
725
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
726 " Returns the palette index to approximate the '#rrggbb' hex string
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
727 fun! s:to_256(rgb)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
728 let l:r = ("0x" . strpart(a:rgb, 1, 2)) + 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
729 let l:g = ("0x" . strpart(a:rgb, 3, 2)) + 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
730 let l:b = ("0x" . strpart(a:rgb, 5, 2)) + 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
731
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
732 return s:colour(l:r, l:g, l:b)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
733 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
734
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
735
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
736
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
737 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
738 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
739
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
740 fun! s:load_256_to_GUI_converter()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
741 " 256-color To GUI-color: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
742
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
743 """ Xterm 256 color dictionary
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
744 " See: http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
745 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
746 let s:to_HEX = {
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
747 \ '00': '#000000', '01': '#800000', '02': '#008000', '03': '#808000', '04': '#000080',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
748 \ '05': '#800080', '06': '#008080', '07': '#c0c0c0', '08': '#808080', '09': '#ff0000',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
749 \ '10': '#00ff00', '11': '#ffff00', '12': '#0000ff', '13': '#ff00ff', '14': '#00ffff',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
750 \ '15': '#ffffff', '16': '#000000', '17': '#00005f', '18': '#000087', '19': '#0000af',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
751 \ '20': '#0000d7', '21': '#0000ff', '22': '#005f00', '23': '#005f5f', '24': '#005f87',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
752 \ '25': '#005faf', '26': '#005fd7', '27': '#005fff', '28': '#008700', '29': '#00875f',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
753 \ '30': '#008787', '31': '#0087af', '32': '#0087d7', '33': '#0087ff', '34': '#00af00',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
754 \ '35': '#00af5f', '36': '#00af87', '37': '#00afaf', '38': '#00afd7', '39': '#00afff',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
755 \ '40': '#00d700', '41': '#00d75f', '42': '#00d787', '43': '#00d7af', '44': '#00d7d7',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
756 \ '45': '#00d7ff', '46': '#00ff00', '47': '#00ff5f', '48': '#00ff87', '49': '#00ffaf',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
757 \ '50': '#00ffd7', '51': '#00ffff', '52': '#5f0000', '53': '#5f005f', '54': '#5f0087',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
758 \ '55': '#5f00af', '56': '#5f00d7', '57': '#5f00ff', '58': '#5f5f00', '59': '#5f5f5f',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
759 \ '60': '#5f5f87', '61': '#5f5faf', '62': '#5f5fd7', '63': '#5f5fff', '64': '#5f8700',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
760 \ '65': '#5f875f', '66': '#5f8787', '67': '#5f87af', '68': '#5f87d7', '69': '#5f87ff',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
761 \ '70': '#5faf00', '71': '#5faf5f', '72': '#5faf87', '73': '#5fafaf', '74': '#5fafd7',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
762 \ '75': '#5fafff', '76': '#5fd700', '77': '#5fd75f', '78': '#5fd787', '79': '#5fd7af',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
763 \ '80': '#5fd7d7', '81': '#5fd7ff', '82': '#5fff00', '83': '#5fff5f', '84': '#5fff87',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
764 \ '85': '#5fffaf', '86': '#5fffd7', '87': '#5fffff', '88': '#870000', '89': '#87005f',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
765 \ '90': '#870087', '91': '#8700af', '92': '#8700d7', '93': '#8700ff', '94': '#875f00',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
766 \ '95': '#875f5f', '96': '#875f87', '97': '#875faf', '98': '#875fd7', '99': '#875fff',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
767 \ '100': '#878700', '101': '#87875f', '102': '#878787', '103': '#8787af', '104': '#8787d7',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
768 \ '105': '#8787ff', '106': '#87af00', '107': '#87af5f', '108': '#87af87', '109': '#87afaf',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
769 \ '110': '#87afd7', '111': '#87afff', '112': '#87d700', '113': '#87d75f', '114': '#87d787',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
770 \ '115': '#87d7af', '116': '#87d7d7', '117': '#87d7ff', '118': '#87ff00', '119': '#87ff5f',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
771 \ '120': '#87ff87', '121': '#87ffaf', '122': '#87ffd7', '123': '#87ffff', '124': '#af0000',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
772 \ '125': '#af005f', '126': '#af0087', '127': '#af00af', '128': '#af00d7', '129': '#af00ff',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
773 \ '130': '#af5f00', '131': '#af5f5f', '132': '#af5f87', '133': '#af5faf', '134': '#af5fd7',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
774 \ '135': '#af5fff', '136': '#af8700', '137': '#af875f', '138': '#af8787', '139': '#af87af',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
775 \ '140': '#af87d7', '141': '#af87ff', '142': '#afaf00', '143': '#afaf5f', '144': '#afaf87',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
776 \ '145': '#afafaf', '146': '#afafd7', '147': '#afafff', '148': '#afd700', '149': '#afd75f',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
777 \ '150': '#afd787', '151': '#afd7af', '152': '#afd7d7', '153': '#afd7ff', '154': '#afff00',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
778 \ '155': '#afff5f', '156': '#afff87', '157': '#afffaf', '158': '#afffd7', '159': '#afffff',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
779 \ '160': '#d70000', '161': '#d7005f', '162': '#d70087', '163': '#d700af', '164': '#d700d7',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
780 \ '165': '#d700ff', '166': '#d75f00', '167': '#d75f5f', '168': '#d75f87', '169': '#d75faf',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
781 \ '170': '#d75fd7', '171': '#d75fff', '172': '#d78700', '173': '#d7875f', '174': '#d78787',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
782 \ '175': '#d787af', '176': '#d787d7', '177': '#d787ff', '178': '#d7af00', '179': '#d7af5f',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
783 \ '180': '#d7af87', '181': '#d7afaf', '182': '#d7afd7', '183': '#d7afff', '184': '#d7d700',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
784 \ '185': '#d7d75f', '186': '#d7d787', '187': '#d7d7af', '188': '#d7d7d7', '189': '#d7d7ff',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
785 \ '190': '#d7ff00', '191': '#d7ff5f', '192': '#d7ff87', '193': '#d7ffaf', '194': '#d7ffd7',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
786 \ '195': '#d7ffff', '196': '#ff0000', '197': '#ff005f', '198': '#ff0087', '199': '#ff00af',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
787 \ '200': '#ff00d7', '201': '#ff00ff', '202': '#ff5f00', '203': '#ff5f5f', '204': '#ff5f87',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
788 \ '205': '#ff5faf', '206': '#ff5fd7', '207': '#ff5fff', '208': '#ff8700', '209': '#ff875f',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
789 \ '210': '#ff8787', '211': '#ff87af', '212': '#ff87d7', '213': '#ff87ff', '214': '#ffaf00',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
790 \ '215': '#ffaf5f', '216': '#ffaf87', '217': '#ffafaf', '218': '#ffafd7', '219': '#ffafff',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
791 \ '220': '#ffd700', '221': '#ffd75f', '222': '#ffd787', '223': '#ffd7af', '224': '#ffd7d7',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
792 \ '225': '#ffd7ff', '226': '#ffff00', '227': '#ffff5f', '228': '#ffff87', '229': '#ffffaf',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
793 \ '230': '#ffffd7', '231': '#ffffff', '232': '#080808', '233': '#121212', '234': '#1c1c1c',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
794 \ '235': '#262626', '236': '#303030', '237': '#3a3a3a', '238': '#444444', '239': '#4e4e4e',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
795 \ '240': '#585858', '241': '#626262', '242': '#6c6c6c', '243': '#767676', '244': '#808080',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
796 \ '245': '#8a8a8a', '246': '#949494', '247': '#9e9e9e', '248': '#a8a8a8', '249': '#b2b2b2',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
797 \ '250': '#bcbcbc', '251': '#c6c6c6', '252': '#d0d0d0', '253': '#dadada', '254': '#e4e4e4',
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
798 \ '255': '#eeeeee' }
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
799
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
800 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
801 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
802
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
803 " ========================== ENVIRONMENT ADAPTER ==============================
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
804
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
805 " Set Format Attributes: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
806
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
807 fun! s:set_format_attributes()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
808 " These are the default
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
809 if s:mode == s:MODE_GUI_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
810 let s:ft_bold = " cterm=bold gui=bold "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
811 let s:ft_none = " cterm=none gui=none "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
812 let s:ft_reverse = " cterm=reverse gui=reverse "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
813 let s:ft_italic = " cterm=italic gui=italic "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
814 let s:ft_italic_bold = " cterm=italic,bold gui=italic,bold "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
815 elseif s:mode == s:MODE_256_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
816 let s:ft_bold = " cterm=bold "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
817 let s:ft_none = " cterm=none "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
818 let s:ft_reverse = " cterm=reverse "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
819 let s:ft_italic = " cterm=italic "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
820 let s:ft_italic_bold = " cterm=italic,bold "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
821 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
822 let s:ft_bold = ""
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
823 let s:ft_none = " cterm=none "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
824 let s:ft_reverse = " cterm=reverse "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
825 let s:ft_italic = ""
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
826 let s:ft_italic_bold = ""
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
827 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
828
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
829 " Unless instructed otherwise either by theme setting or user overriding
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
830
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
831 if s:themeOpt_allow_bold == 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
832 let s:ft_bold = ""
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
833 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
834 if s:themeOpt_allow_italic == 0
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
835 let s:ft_italic = ""
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
836 let s:ft_italic_bold = s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
837 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
838
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
839 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
840
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
841 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
842
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
843 " Convert Colors If Needed: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
844 fun! s:convert_colors()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
845 if s:theme_has_hint('NO_CONVERSION')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
846 return
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
847 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
848
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
849 if s:mode == s:MODE_GUI_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
850 " if GUI color is not provided, convert from 256 color that must be available
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
851 call s:load_256_to_GUI_converter()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
852
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
853 for l:color in keys(s:palette)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
854 let l:value = s:palette[l:color]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
855 if l:value[0] == ''
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
856 let l:value[0] = s:to_HEX[l:value[1]]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
857 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
858 let s:palette[l:color] = l:value
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
859 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
860
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
861 elseif s:mode == s:MODE_256_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
862 " if 256 color is not provided, convert from GUI color that must be available
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
863 call s:load_GUI_to_256_converter()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
864
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
865 for l:color in keys(s:palette)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
866 let l:value = s:palette[l:color]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
867 if l:value[1] == ''
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
868 let l:value[1] = s:to_256(l:value[0])
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
869 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
870 let s:palette[l:color] = l:value
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
871 endfor
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
872 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
873 " otherwise use the terminal colors and none of the theme colors are used
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
874 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
875
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
876 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
877
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
878 " ============================ COLOR POPULARIZER ===============================
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
879
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
880 " Set Color Variables: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
881 fun! s:set_color_variables()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
882
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
883 " Helper: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
884 " -------
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
885 " Function to dynamically generate variables that store the color strings
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
886 " for setting highlighting. Each color name will have 2 variables with prefix
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
887 " s:fg_ and s:bg_. For example:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
888 " if a:color_name is 'Normal' and a:color_value is ['#000000', '0', 'Black'],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
889 " the following 2 variables will be created:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
890 " s:fg_Normal that stores the string ' guifg=#000000 '
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
891 " s:bg_Normal that stores the string ' guibg=#000000 '
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
892 " Depending on the color mode, ctermfg and ctermbg will be either 0 or Black
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
893 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
894 " Rationale:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
895 " The whole purpose is for speed. We generate these ahead of time so that we
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
896 " don't have to do look up or do any if-branch when we set the highlightings.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
897 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
898 " Furthermore, multiple function definitions for each mode actually reduces
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
899 " the need for multiple if-branches inside a single function. This is not
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
900 " pretty, but Vim Script is slow, so reducing if-branches in function that is
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
901 " often called helps speeding things up quite a bit. Think of this like macro.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
902 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
903 " If you are familiar with the old code base (v0.9 and ealier), this way of
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
904 " generate variables dramatically reduces the loading speed.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
905 " None of previous optimization tricks gets anywhere near this.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
906 if s:mode == s:MODE_GUI_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
907 fun! s:create_color_variables(color_name, rich_color, term_color)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
908 let {'s:fg_' . a:color_name} = ' guifg=' . a:rich_color[0] . ' '
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
909 let {'s:bg_' . a:color_name} = ' guibg=' . a:rich_color[0] . ' '
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
910 let {'s:sp_' . a:color_name} = ' guisp=' . a:rich_color[0] . ' '
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
911 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
912 elseif s:mode == s:MODE_256_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
913 fun! s:create_color_variables(color_name, rich_color, term_color)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
914 let {'s:fg_' . a:color_name} = ' ctermfg=' . a:rich_color[1] . ' '
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
915 let {'s:bg_' . a:color_name} = ' ctermbg=' . a:rich_color[1] . ' '
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
916 let {'s:sp_' . a:color_name} = ''
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
917 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
918 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
919 fun! s:create_color_variables(color_name, rich_color, term_color)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
920 let {'s:fg_' . a:color_name} = ' ctermfg=' . a:term_color . ' '
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
921 let {'s:bg_' . a:color_name} = ' ctermbg=' . a:term_color . ' '
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
922 let {'s:sp_' . a:color_name} = ''
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
923 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
924 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
925 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
926
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
927 " Color value format: Array [<GUI COLOR/HEX >, <256-Base>, <16-Base>]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
928 " 16-Base is terminal's native color palette that can be alternated through
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
929 " the terminal settings. The 16-color names are according to `:h cterm-colors`
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
930
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
931 " BASIC COLORS:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
932 " color00-15 are required by all themes.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
933 " These are also how the terminal color palette for the target theme should be.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
934 " See README for theme design guideline
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
935 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
936 " An example format of the below variable's value: ['#262626', '234', 'Black']
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
937 " Where the 1st value is HEX color for GUI Vim, 2nd value is for 256-color terminal,
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
938 " and the color name on the right is for 16-color terminal (the actual terminal colors
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
939 " can be different from what the color names suggest). See :h cterm-colors
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
940 "
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
941 " Depending on the provided color palette and current Vim, the 1st and 2nd
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
942 " parameter might not exist, for example, on 16-color terminal, the variables below
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
943 " only store the color names to use the terminal color palette which is the only
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
944 " thing available therefore no need for GUI-color or 256-color.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
945
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
946 let color00 = get(s:palette, 'color00')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
947 let color01 = get(s:palette, 'color01')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
948 let color02 = get(s:palette, 'color02')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
949 let color03 = get(s:palette, 'color03')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
950 let color04 = get(s:palette, 'color04')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
951 let color05 = get(s:palette, 'color05')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
952 let color06 = get(s:palette, 'color06')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
953 let color07 = get(s:palette, 'color07')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
954 let color08 = get(s:palette, 'color08')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
955 let color09 = get(s:palette, 'color09')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
956 let color10 = get(s:palette, 'color10')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
957 let color11 = get(s:palette, 'color11')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
958 let color12 = get(s:palette, 'color12')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
959 let color13 = get(s:palette, 'color13')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
960 let color14 = get(s:palette, 'color14')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
961 let color15 = get(s:palette, 'color15')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
962
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
963 call s:create_color_variables('background', color00 , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
964 call s:create_color_variables('negative', color01 , 'DarkRed')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
965 call s:create_color_variables('positive', color02 , 'DarkGreen')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
966 call s:create_color_variables('olive', color03 , 'DarkYellow') " string
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
967 call s:create_color_variables('neutral', color04 , 'DarkBlue')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
968 call s:create_color_variables('comment', color05 , 'DarkMagenta')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
969 call s:create_color_variables('navy', color06 , 'DarkCyan') " storageclass
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
970 call s:create_color_variables('foreground', color07 , 'LightGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
971
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
972 call s:create_color_variables('nontext', color08 , 'DarkGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
973 call s:create_color_variables('red', color09 , 'LightRed') " import / try/catch
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
974 call s:create_color_variables('pink', color10 , 'LightGreen') " statement, type
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
975 call s:create_color_variables('purple', color11 , 'LightYellow') " if / conditional
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
976 call s:create_color_variables('accent', color12 , 'LightBlue')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
977 call s:create_color_variables('orange', color13 , 'LightMagenta') " number
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
978 call s:create_color_variables('blue', color14 , 'LightCyan') " other keyword
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
979 call s:create_color_variables('highlight', color15 , 'White')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
980
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
981 " Note: special case for FoldColumn group. I want to get rid of this case.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
982 call s:create_color_variables('transparent', [color00[0], 'none'], 'none')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
983
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
984 " EXTENDED COLORS:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
985 " From here on, all colors are optional and must have default values (3rd parameter of the
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
986 " `get` command) that point to the above basic colors in case the target theme doesn't
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
987 " provide the extended colors. The default values should be reasonably sensible.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
988 " The terminal color must be provided also.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
989
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
990 call s:create_color_variables('aqua', get(s:palette, 'color16', color14) , 'LightCyan')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
991 call s:create_color_variables('green', get(s:palette, 'color17', color13) , 'LightMagenta')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
992 call s:create_color_variables('wine', get(s:palette, 'color18', color11) , 'LightYellow')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
993
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
994 " LineNumber: when set number
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
995 call s:create_color_variables('linenumber_fg', get(s:palette, 'linenumber_fg', color08) , 'DarkGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
996 call s:create_color_variables('linenumber_bg', get(s:palette, 'linenumber_bg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
997
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
998 " Vertical Split: when there are more than 1 window side by side, ex: <C-W><C-V>
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
999 call s:create_color_variables('vertsplit_fg', get(s:palette, 'vertsplit_fg', color15) , 'White')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1000 call s:create_color_variables('vertsplit_bg', get(s:palette, 'vertsplit_bg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1001
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1002 " Statusline: when set status=2
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1003 call s:create_color_variables('statusline_active_fg', get(s:palette, 'statusline_active_fg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1004 call s:create_color_variables('statusline_active_bg', get(s:palette, 'statusline_active_bg', color15) , 'White')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1005 call s:create_color_variables('statusline_inactive_fg', get(s:palette, 'statusline_inactive_fg', color07) , 'LightGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1006 call s:create_color_variables('statusline_inactive_bg', get(s:palette, 'statusline_inactive_bg', color08) , 'DarkGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1007
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1008
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1009 " Cursor: in normal mode
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1010 call s:create_color_variables('cursor_fg', get(s:palette, 'cursor_fg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1011 call s:create_color_variables('cursor_bg', get(s:palette, 'cursor_bg', color07) , 'LightGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1012
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1013 call s:create_color_variables('cursorline', get(s:palette, 'cursorline', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1014
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1015 " CursorColumn: when set cursorcolumn
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1016 call s:create_color_variables('cursorcolumn', get(s:palette, 'cursorcolumn', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1017
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1018 " CursorLine Number: when set cursorline number
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1019 call s:create_color_variables('cursorlinenr_fg', get(s:palette, 'cursorlinenr_fg', color13) , 'LightMagenta')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1020 call s:create_color_variables('cursorlinenr_bg', get(s:palette, 'cursorlinenr_bg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1021
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1022 " Popup Menu: when <C-X><C-N> for autocomplete
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1023 call s:create_color_variables('popupmenu_fg', get(s:palette, 'popupmenu_fg', color07) , 'LightGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1024 call s:create_color_variables('popupmenu_bg', get(s:palette, 'popupmenu_bg', color08) , 'DarkGray') " TODO: double check this, might resolve an issue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1025
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1026 " Search: ex: when * on a word
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1027 call s:create_color_variables('search_fg', get(s:palette, 'search_fg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1028 call s:create_color_variables('search_bg', get(s:palette, 'search_bg', color15) , 'Yellow')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1029
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1030 " Todo: ex: TODO
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1031 call s:create_color_variables('todo_fg', get(s:palette, 'todo_fg', color05) , 'LightYellow')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1032 call s:create_color_variables('todo_bg', get(s:palette, 'todo_bg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1033
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1034 " Error: ex: turn spell on and have invalid words
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1035 call s:create_color_variables('error_fg', get(s:palette, 'error_fg', color01) , 'DarkRed')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1036 call s:create_color_variables('error_bg', get(s:palette, 'error_bg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1037
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1038 " Match Parenthesis: selecting an opening/closing pair and the other one will be highlighted
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1039 call s:create_color_variables('matchparen_fg', get(s:palette, 'matchparen_fg', color00) , 'LightMagenta')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1040 call s:create_color_variables('matchparen_bg', get(s:palette, 'matchparen_bg', color05) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1041
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1042 " Visual:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1043 call s:create_color_variables('visual_fg', get(s:palette, 'visual_fg', color08) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1044 call s:create_color_variables('visual_bg', get(s:palette, 'visual_bg', color07) , 'White')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1045
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1046 " Folded:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1047 call s:create_color_variables('folded_fg', get(s:palette, 'folded_fg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1048 call s:create_color_variables('folded_bg', get(s:palette, 'folded_bg', color05) , 'DarkYellow')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1049
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1050 " WildMenu: Autocomplete command, ex: :color <tab><tab>
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1051 call s:create_color_variables('wildmenu_fg', get(s:palette, 'wildmenu_fg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1052 call s:create_color_variables('wildmenu_bg', get(s:palette, 'wildmenu_bg', color06) , 'LightGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1053
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1054 " Spelling: when spell on and there are spelling problems like this for example: papercolor. a vim color scheme
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1055 call s:create_color_variables('spellbad', get(s:palette, 'spellbad', color04) , 'DarkRed')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1056 call s:create_color_variables('spellcap', get(s:palette, 'spellcap', color05) , 'DarkMagenta')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1057 call s:create_color_variables('spellrare', get(s:palette, 'spellrare', color06) , 'DarkYellow')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1058 call s:create_color_variables('spelllocal', get(s:palette, 'spelllocal', color01) , 'DarkBlue')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1059
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1060 " Diff:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1061 call s:create_color_variables('diffadd_fg', get(s:palette, 'diffadd_fg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1062 call s:create_color_variables('diffadd_bg', get(s:palette, 'diffadd_bg', color02) , 'DarkGreen')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1063
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1064 call s:create_color_variables('diffdelete_fg', get(s:palette, 'diffdelete_fg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1065 call s:create_color_variables('diffdelete_bg', get(s:palette, 'diffdelete_bg', color04) , 'DarkRed')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1066
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1067 call s:create_color_variables('difftext_fg', get(s:palette, 'difftext_fg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1068 call s:create_color_variables('difftext_bg', get(s:palette, 'difftext_bg', color06) , 'DarkYellow')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1069
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1070 call s:create_color_variables('diffchange_fg', get(s:palette, 'diffchange_fg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1071 call s:create_color_variables('diffchange_bg', get(s:palette, 'diffchange_bg', color14) , 'LightYellow')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1072
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1073 " Tabline: when having tabs, ex: :tabnew
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1074 call s:create_color_variables('tabline_bg', get(s:palette, 'tabline_bg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1075 call s:create_color_variables('tabline_active_fg', get(s:palette, 'tabline_active_fg', color07) , 'LightGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1076 call s:create_color_variables('tabline_active_bg', get(s:palette, 'tabline_active_bg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1077 call s:create_color_variables('tabline_inactive_fg', get(s:palette, 'tabline_inactive_fg', color07) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1078 call s:create_color_variables('tabline_inactive_bg', get(s:palette, 'tabline_inactive_bg', color08) , 'DarkMagenta')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1079
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1080 " Plugin: BufTabLine https://github.com/ap/vim-buftabline
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1081 call s:create_color_variables('buftabline_bg', get(s:palette, 'buftabline_bg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1082 call s:create_color_variables('buftabline_current_fg', get(s:palette, 'buftabline_current_fg', color07) , 'LightGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1083 call s:create_color_variables('buftabline_current_bg', get(s:palette, 'buftabline_current_bg', color05) , 'DarkMagenta')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1084 call s:create_color_variables('buftabline_active_fg', get(s:palette, 'buftabline_active_fg', color07) , 'LightGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1085 call s:create_color_variables('buftabline_active_bg', get(s:palette, 'buftabline_active_bg', color12) , 'LightBlue')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1086 call s:create_color_variables('buftabline_inactive_fg', get(s:palette, 'buftabline_inactive_fg', color07) , 'LightGray')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1087 call s:create_color_variables('buftabline_inactive_bg', get(s:palette, 'buftabline_inactive_bg', color00) , 'Black')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1088
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1089 " Neovim terminal colors https://neovim.io/doc/user/nvim_terminal_emulator.html#nvim-terminal-emulator-configuration
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1090 " TODO: Fix this
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1091 let g:terminal_color_0 = color00[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1092 let g:terminal_color_1 = color01[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1093 let g:terminal_color_2 = color02[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1094 let g:terminal_color_3 = color03[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1095 let g:terminal_color_4 = color04[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1096 let g:terminal_color_5 = color05[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1097 let g:terminal_color_6 = color06[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1098 let g:terminal_color_7 = color07[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1099 let g:terminal_color_8 = color08[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1100 let g:terminal_color_9 = color09[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1101 let g:terminal_color_10 = color10[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1102 let g:terminal_color_11 = color11[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1103 let g:terminal_color_12 = color12[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1104 let g:terminal_color_13 = color13[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1105 let g:terminal_color_14 = color14[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1106 let g:terminal_color_15 = color15[0]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1107
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1108 " Vim 8's :terminal buffer ANSI colors
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1109 if has('terminal')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1110 let g:terminal_ansi_colors = [color00[0], color01[0], color02[0], color03[0],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1111 \ color04[0], color05[0], color06[0], color07[0], color08[0], color09[0],
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1112 \ color10[0], color11[0], color12[0], color13[0], color14[0], color15[0]]
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1113 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1114
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1115 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1116 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1117
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1118 " Apply Syntax Highlightings: {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1119
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1120 fun! s:apply_syntax_highlightings()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1121
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1122 if s:themeOpt_transparent_background
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1123 exec 'hi Normal' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1124 " Switching between dark & light variant through `set background`
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1125 " NOTE: Handle background switching right after `Normal` group because of
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1126 " God-know-why reason. Not doing this way had caused issue before
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1127 if s:is_dark " DARK VARIANT
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1128 set background=dark
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1129 else " LIGHT VARIANT
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1130 set background=light
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1131 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1132
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1133 exec 'hi NonText' . s:fg_nontext
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1134 exec 'hi LineNr' . s:fg_linenumber_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1135 exec 'hi Conceal' . s:fg_linenumber_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1136 exec 'hi VertSplit' . s:fg_vertsplit_fg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1137 exec 'hi FoldColumn' . s:fg_folded_fg . s:bg_transparent . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1138 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1139 exec 'hi Normal' . s:fg_foreground . s:bg_background
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1140 " Switching between dark & light variant through `set background`
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1141 if s:is_dark " DARK VARIANT
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1142 set background=dark
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1143 exec 'hi EndOfBuffer' . s:fg_cursor_fg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1144 else " LIGHT VARIANT
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1145 set background=light
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1146 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1147
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1148 exec 'hi NonText' . s:fg_nontext . s:bg_background
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1149 exec 'hi LineNr' . s:fg_linenumber_fg . s:bg_linenumber_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1150 exec 'hi Conceal' . s:fg_linenumber_fg . s:bg_linenumber_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1151 exec 'hi VertSplit' . s:fg_vertsplit_bg . s:bg_vertsplit_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1152 exec 'hi FoldColumn' . s:fg_folded_fg . s:bg_background . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1153 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1154
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1155 exec 'hi Cursor' . s:fg_cursor_fg . s:bg_cursor_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1156 exec 'hi SpecialKey' . s:fg_nontext
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1157 exec 'hi Search' . s:fg_search_fg . s:bg_search_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1158 exec 'hi StatusLine' . s:fg_statusline_active_bg . s:bg_statusline_active_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1159 exec 'hi StatusLineNC' . s:fg_statusline_inactive_bg . s:bg_statusline_inactive_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1160 exec 'hi StatusLineTerm' . s:fg_statusline_active_bg . s:bg_statusline_active_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1161 exec 'hi StatusLineTermNC' . s:fg_statusline_inactive_bg . s:bg_statusline_inactive_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1162 exec 'hi Visual' . s:fg_visual_fg . s:bg_visual_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1163 exec 'hi Directory' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1164 exec 'hi ModeMsg' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1165 exec 'hi MoreMsg' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1166 exec 'hi Question' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1167 exec 'hi WarningMsg' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1168 exec 'hi MatchParen' . s:fg_matchparen_fg . s:bg_matchparen_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1169 exec 'hi Folded' . s:fg_folded_fg . s:bg_folded_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1170 exec 'hi WildMenu' . s:fg_wildmenu_fg . s:bg_wildmenu_bg . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1171
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1172 if version >= 700
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1173 exec 'hi CursorLine' . s:bg_cursorline . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1174 if s:mode == s:MODE_16_COLOR
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1175 exec 'hi CursorLineNr' . s:fg_cursorlinenr_fg . s:bg_cursorlinenr_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1176 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1177 exec 'hi CursorLineNr' . s:fg_cursorlinenr_fg . s:bg_cursorlinenr_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1178 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1179 exec 'hi CursorColumn' . s:bg_cursorcolumn . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1180 exec 'hi PMenu' . s:fg_popupmenu_fg . s:bg_popupmenu_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1181 exec 'hi PMenuSel' . s:fg_popupmenu_fg . s:bg_popupmenu_bg . s:ft_reverse
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1182 if s:themeOpt_transparent_background
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1183 exec 'hi SignColumn' . s:fg_green . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1184 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1185 exec 'hi SignColumn' . s:fg_green . s:bg_background . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1186 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1187 end
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1188 if version >= 703
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1189 exec 'hi ColorColumn' . s:bg_cursorcolumn . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1190 end
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1191
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1192 exec 'hi TabLine' . s:fg_tabline_inactive_fg . s:bg_tabline_inactive_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1193 exec 'hi TabLineFill' . s:fg_tabline_bg . s:bg_tabline_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1194 exec 'hi TabLineSel' . s:fg_tabline_active_fg . s:bg_tabline_active_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1195
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1196 exec 'hi BufTabLineCurrent' . s:fg_buftabline_current_fg . s:bg_buftabline_current_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1197 exec 'hi BufTabLineActive' . s:fg_buftabline_active_fg . s:bg_buftabline_active_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1198 exec 'hi BufTabLineHidden' . s:fg_buftabline_inactive_fg . s:bg_buftabline_inactive_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1199 exec 'hi BufTabLineFill' . s:bg_buftabline_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1200
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1201 " Standard Group Highlighting:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1202 exec 'hi Comment' . s:fg_comment . s:ft_italic
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1203
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1204 exec 'hi Constant' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1205 exec 'hi String' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1206 exec 'hi Character' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1207 exec 'hi Number' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1208 exec 'hi Boolean' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1209 exec 'hi Float' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1210
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1211 exec 'hi Identifier' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1212 exec 'hi Function' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1213
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1214 exec 'hi Statement' . s:fg_pink . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1215 exec 'hi Conditional' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1216 exec 'hi Repeat' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1217 exec 'hi Label' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1218 exec 'hi Operator' . s:fg_aqua . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1219 exec 'hi Keyword' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1220 exec 'hi Exception' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1221
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1222 exec 'hi PreProc' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1223 exec 'hi Include' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1224 exec 'hi Define' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1225 exec 'hi Macro' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1226 exec 'hi PreCondit' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1227
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1228 exec 'hi Type' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1229 exec 'hi StorageClass' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1230 exec 'hi Structure' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1231 exec 'hi Typedef' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1232
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1233 exec 'hi Special' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1234 exec 'hi SpecialChar' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1235 exec 'hi Tag' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1236 exec 'hi Delimiter' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1237 exec 'hi SpecialComment' . s:fg_comment . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1238 exec 'hi Debug' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1239
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1240 exec 'hi Error' . s:fg_error_fg . s:bg_error_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1241 exec 'hi Todo' . s:fg_todo_fg . s:bg_todo_bg . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1242
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1243 exec 'hi Title' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1244 exec 'hi Global' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1245
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1246 " Neovim (LSP) diagnostics
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1247 if has('nvim')
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1248 exec 'hi LspDiagnosticsDefaultError' . s:fg_error_fg . s:bg_error_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1249 exec 'hi LspDiagnosticsDefaultWarning' . s:fg_todo_fg . s:bg_todo_bg . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1250 exec 'hi LspDiagnosticsDefaultInformation' . s:fg_todo_fg . s:bg_todo_bg . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1251 exec 'hi LspDiagnosticsDefaultHint' . s:fg_todo_fg . s:bg_todo_bg . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1252
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1253 exec 'hi LspDiagnosticsUnderlineError cterm=undercurl gui=undercurl' . s:sp_error_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1254 exec 'hi LspDiagnosticsUnderlineWarning cterm=undercurl gui=undercurl' . s:sp_todo_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1255 exec 'hi LspDiagnosticsUnderlineInformation cterm=undercurl gui=undercurl' . s:sp_todo_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1256 exec 'hi LspDiagnosticsUnderlineHint cterm=undercurl gui=undercurl' . s:sp_todo_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1257
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1258 hi! link DiagnosticError LspDiagnosticsDefaultError
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1259 hi! link DiagnosticWarn LspDiagnosticsDefaultWarning
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1260 hi! link DiagnosticInfo LspDiagnosticsDefaultInformation
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1261 hi! link DiagnosticHint LspDiagnosticsDefaultHint
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1262
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1263 hi! link DiagnosticUnderlineError LspDiagnosticsUnderlineError
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1264 hi! link DiagnosticUnderlineWarn LspDiagnosticsUnderlineWarning
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1265 hi! link DiagnosticUnderlineInfo LspDiagnosticsUnderlineInformation
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1266 hi! link DiagnosticUnderlineHint LspDiagnosticsUnderlineHint
673
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
1267
662
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1268 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1269
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1270 " Extension {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1271 " VimL Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1272 exec 'hi vimCommand' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1273 exec 'hi vimVar' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1274 exec 'hi vimFuncKey' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1275 exec 'hi vimFunction' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1276 exec 'hi vimNotFunc' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1277 exec 'hi vimMap' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1278 exec 'hi vimAutoEvent' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1279 exec 'hi vimMapModKey' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1280 exec 'hi vimFuncName' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1281 exec 'hi vimIsCommand' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1282 exec 'hi vimFuncVar' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1283 exec 'hi vimLet' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1284 exec 'hi vimContinue' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1285 exec 'hi vimMapRhsExtend' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1286 exec 'hi vimCommentTitle' . s:fg_comment . s:ft_italic_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1287 exec 'hi vimBracket' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1288 exec 'hi vimParenSep' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1289 exec 'hi vimNotation' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1290 exec 'hi vimOper' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1291 exec 'hi vimOperParen' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1292 exec 'hi vimSynType' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1293 exec 'hi vimSynReg' . s:fg_pink . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1294 exec 'hi vimSynRegion' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1295 exec 'hi vimSynMtchGrp' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1296 exec 'hi vimSynNextgroup' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1297 exec 'hi vimSynKeyRegion' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1298 exec 'hi vimSynRegOpt' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1299 exec 'hi vimSynMtchOpt' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1300 exec 'hi vimSynContains' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1301 exec 'hi vimGroupName' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1302 exec 'hi vimGroupList' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1303 exec 'hi vimHiGroup' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1304 exec 'hi vimGroup' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1305 exec 'hi vimOnlyOption' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1306
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1307 " Makefile Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1308 exec 'hi makeIdent' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1309 exec 'hi makeSpecTarget' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1310 exec 'hi makeTarget' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1311 exec 'hi makeStatement' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1312 exec 'hi makeCommands' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1313 exec 'hi makeSpecial' . s:fg_orange . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1314
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1315 " CMake Highlighting (Builtin)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1316 exec 'hi cmakeStatement' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1317 exec 'hi cmakeArguments' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1318 exec 'hi cmakeVariableValue' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1319
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1320 " CMake Highlighting (Plugin: https://github.com/pboettch/vim-cmake-syntax)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1321 exec 'hi cmakeCommand' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1322 exec 'hi cmakeCommandConditional' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1323 exec 'hi cmakeKWset' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1324 exec 'hi cmakeKWvariable_watch' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1325 exec 'hi cmakeKWif' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1326 exec 'hi cmakeArguments' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1327 exec 'hi cmakeKWproject' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1328 exec 'hi cmakeGeneratorExpressions' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1329 exec 'hi cmakeGeneratorExpression' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1330 exec 'hi cmakeVariable' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1331 exec 'hi cmakeProperty' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1332 exec 'hi cmakeKWforeach' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1333 exec 'hi cmakeKWunset' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1334 exec 'hi cmakeKWmacro' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1335 exec 'hi cmakeKWget_property' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1336 exec 'hi cmakeKWset_tests_properties' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1337 exec 'hi cmakeKWmessage' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1338 exec 'hi cmakeKWinstall_targets' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1339 exec 'hi cmakeKWsource_group' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1340 exec 'hi cmakeKWfind_package' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1341 exec 'hi cmakeKWstring' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1342 exec 'hi cmakeKWinstall' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1343 exec 'hi cmakeKWtarget_sources' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1344
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1345 " C Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1346 exec 'hi cType' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1347 exec 'hi cFormat' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1348 exec 'hi cStorageClass' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1349
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1350 exec 'hi cBoolean' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1351 exec 'hi cCharacter' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1352 exec 'hi cConstant' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1353 exec 'hi cConditional' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1354 exec 'hi cSpecial' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1355 exec 'hi cDefine' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1356 exec 'hi cNumber' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1357 exec 'hi cPreCondit' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1358 exec 'hi cRepeat' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1359 exec 'hi cLabel' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1360 " exec 'hi cAnsiFunction' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1361 " exec 'hi cAnsiName' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1362 exec 'hi cDelimiter' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1363 " exec 'hi cBraces' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1364 " exec 'hi cIdentifier' . s:fg_blue . s:bg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1365 " exec 'hi cSemiColon' . s:bg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1366 exec 'hi cOperator' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1367 " exec 'hi cStatement' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1368 " exec 'hi cTodo' . s:fg_comment . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1369 " exec 'hi cStructure' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1370 exec 'hi cCustomParen' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1371 " exec 'hi cCustomFunc' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1372 " exec 'hi cUserFunction' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1373 exec 'hi cOctalZero' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1374 if s:langOpt_c__highlight_builtins == 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1375 exec 'hi cFunction' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1376 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1377 exec 'hi cFunction' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1378 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1379
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1380 " CPP highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1381 exec 'hi cppBoolean' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1382 exec 'hi cppSTLnamespace' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1383 exec 'hi cppSTLexception' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1384 exec 'hi cppSTLfunctional' . s:fg_foreground . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1385 exec 'hi cppSTLiterator' . s:fg_foreground . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1386 exec 'hi cppExceptions' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1387 exec 'hi cppStatement' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1388 exec 'hi cppStorageClass' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1389 exec 'hi cppAccess' . s:fg_orange . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1390 if s:langOpt_cpp__highlight_standard_library == 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1391 exec 'hi cppSTLconstant' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1392 exec 'hi cppSTLtype' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1393 exec 'hi cppSTLfunction' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1394 exec 'hi cppSTLios' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1395 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1396 exec 'hi cppSTLconstant' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1397 exec 'hi cppSTLtype' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1398 exec 'hi cppSTLfunction' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1399 exec 'hi cppSTLios' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1400 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1401 " exec 'hi cppSTL' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1402
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1403 " Rust highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1404 exec 'hi rustKeyword' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1405 exec 'hi rustModPath' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1406 exec 'hi rustModPathSep' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1407 exec 'hi rustLifetime' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1408 exec 'hi rustStructure' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1409 exec 'hi rustAttribute' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1410 exec 'hi rustPanic' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1411 exec 'hi rustTrait' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1412 exec 'hi rustEnum' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1413 exec 'hi rustEnumVariant' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1414 exec 'hi rustSelf' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1415 exec 'hi rustSigil' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1416 exec 'hi rustOperator' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1417 exec 'hi rustMacro' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1418 exec 'hi rustMacroVariable' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1419 exec 'hi rustAssert' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1420 exec 'hi rustConditional' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1421
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1422 " Lex highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1423 exec 'hi lexCFunctions' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1424 exec 'hi lexAbbrv' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1425 exec 'hi lexAbbrvRegExp' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1426 exec 'hi lexAbbrvComment' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1427 exec 'hi lexBrace' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1428 exec 'hi lexPat' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1429 exec 'hi lexPatComment' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1430 exec 'hi lexPatTag' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1431 " exec 'hi lexPatBlock' . s:fg_foreground . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1432 exec 'hi lexSlashQuote' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1433 exec 'hi lexSep' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1434 exec 'hi lexStartState' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1435 exec 'hi lexPatTagZone' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1436 exec 'hi lexMorePat' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1437 exec 'hi lexOptions' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1438 exec 'hi lexPatString' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1439
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1440 " Yacc highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1441 exec 'hi yaccNonterminal' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1442 exec 'hi yaccDelim' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1443 exec 'hi yaccInitKey' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1444 exec 'hi yaccInit' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1445 exec 'hi yaccKey' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1446 exec 'hi yaccVar' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1447
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1448 " NASM highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1449 exec 'hi nasmStdInstruction' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1450 exec 'hi nasmGen08Register' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1451 exec 'hi nasmGen16Register' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1452 exec 'hi nasmGen32Register' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1453 exec 'hi nasmGen64Register' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1454 exec 'hi nasmHexNumber' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1455 exec 'hi nasmStorage' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1456 exec 'hi nasmLabel' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1457 exec 'hi nasmDirective' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1458 exec 'hi nasmLocalLabel' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1459
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1460 " GAS highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1461 exec 'hi gasSymbol' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1462 exec 'hi gasDirective' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1463 exec 'hi gasOpcode_386_Base' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1464 exec 'hi gasDecimalNumber' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1465 exec 'hi gasSymbolRef' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1466 exec 'hi gasRegisterX86' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1467 exec 'hi gasOpcode_P6_Base' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1468 exec 'hi gasDirectiveStore' . s:fg_foreground . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1469
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1470 " MIPS highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1471 exec 'hi mipsInstruction' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1472 exec 'hi mipsRegister' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1473 exec 'hi mipsLabel' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1474 exec 'hi mipsDirective' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1475
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1476 " Shell/Bash highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1477 exec 'hi bashStatement' . s:fg_foreground . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1478 exec 'hi shDerefVar' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1479 exec 'hi shDerefSimple' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1480 exec 'hi shFunction' . s:fg_orange . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1481 exec 'hi shStatement' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1482 exec 'hi shLoop' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1483 exec 'hi shQuote' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1484 exec 'hi shCaseEsac' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1485 exec 'hi shSnglCase' . s:fg_purple . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1486 exec 'hi shFunctionOne' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1487 exec 'hi shCase' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1488 exec 'hi shSetList' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1489 " @see Dockerfile Highlighting section for more sh*
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1490
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1491 " PowerShell Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1492 exec 'hi ps1Type' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1493 exec 'hi ps1Variable' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1494 exec 'hi ps1Boolean' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1495 exec 'hi ps1FunctionInvocation' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1496 exec 'hi ps1FunctionDeclaration' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1497 exec 'hi ps1Keyword' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1498 exec 'hi ps1Exception' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1499 exec 'hi ps1Operator' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1500 exec 'hi ps1CommentDoc' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1501 exec 'hi ps1CDocParam' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1502
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1503 " HTML Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1504 exec 'hi htmlTitle' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1505 exec 'hi htmlH1' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1506 exec 'hi htmlH2' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1507 exec 'hi htmlH3' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1508 exec 'hi htmlH4' . s:fg_orange . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1509 exec 'hi htmlTag' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1510 exec 'hi htmlTagName' . s:fg_wine
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1511 exec 'hi htmlArg' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1512 exec 'hi htmlEndTag' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1513 exec 'hi htmlString' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1514 exec 'hi htmlScriptTag' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1515 exec 'hi htmlBold' . s:fg_foreground . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1516 exec 'hi htmlItalic' . s:fg_comment . s:ft_italic
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1517 exec 'hi htmlBoldItalic' . s:fg_navy . s:ft_italic_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1518 " exec 'hi htmlLink' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1519 exec 'hi htmlTagN' . s:fg_wine . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1520 exec 'hi htmlSpecialTagName' . s:fg_wine
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1521 exec 'hi htmlComment' . s:fg_comment . s:ft_italic
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1522 exec 'hi htmlCommentPart' . s:fg_comment . s:ft_italic
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1523
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1524 " CSS Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1525 exec 'hi cssIdentifier' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1526 exec 'hi cssPositioningProp' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1527 exec 'hi cssNoise' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1528 exec 'hi cssBoxProp' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1529 exec 'hi cssTableAttr' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1530 exec 'hi cssPositioningAttr' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1531 exec 'hi cssValueLength' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1532 exec 'hi cssFunctionName' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1533 exec 'hi cssUnitDecorators' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1534 exec 'hi cssColor' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1535 exec 'hi cssBraces' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1536 exec 'hi cssBackgroundProp' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1537 exec 'hi cssTextProp' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1538 exec 'hi cssDimensionProp' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1539 exec 'hi cssClassName' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1540
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1541 " Markdown Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1542 exec 'hi markdownHeadingRule' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1543 exec 'hi markdownH1' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1544 exec 'hi markdownH2' . s:fg_orange . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1545 exec 'hi markdownBlockquote' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1546 exec 'hi markdownCodeBlock' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1547 exec 'hi markdownCode' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1548 exec 'hi markdownLink' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1549 exec 'hi markdownUrl' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1550 exec 'hi markdownLinkText' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1551 exec 'hi markdownLinkTextDelimiter' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1552 exec 'hi markdownLinkDelimiter' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1553 exec 'hi markdownCodeDelimiter' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1554
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1555 exec 'hi mkdCode' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1556 exec 'hi mkdLink' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1557 exec 'hi mkdURL' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1558 exec 'hi mkdString' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1559 exec 'hi mkdBlockQuote' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1560 exec 'hi mkdLinkTitle' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1561 exec 'hi mkdDelimiter' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1562 exec 'hi mkdRule' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1563
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1564 " reStructuredText Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1565 exec 'hi rstSections' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1566 exec 'hi rstDelimiter' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1567 exec 'hi rstExplicitMarkup' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1568 exec 'hi rstDirective' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1569 exec 'hi rstHyperlinkTarget' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1570 exec 'hi rstExDirective' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1571 exec 'hi rstInlineLiteral' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1572 exec 'hi rstInterpretedTextOrHyperlinkReference' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1573
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1574 " Python Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1575 exec 'hi pythonImport' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1576 exec 'hi pythonExceptions' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1577 exec 'hi pythonException' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1578 exec 'hi pythonInclude' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1579 exec 'hi pythonStatement' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1580 exec 'hi pythonConditional' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1581 exec 'hi pythonRepeat' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1582 exec 'hi pythonFunction' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1583 exec 'hi pythonPreCondit' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1584 exec 'hi pythonExClass' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1585 exec 'hi pythonOperator' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1586 exec 'hi pythonBuiltin' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1587 exec 'hi pythonDecorator' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1588
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1589 exec 'hi pythonString' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1590 exec 'hi pythonEscape' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1591 exec 'hi pythonStrFormatting' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1592
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1593 exec 'hi pythonBoolean' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1594 exec 'hi pythonBytesEscape' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1595 exec 'hi pythonDottedName' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1596 exec 'hi pythonStrFormat' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1597
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1598 if s:langOpt_python__highlight_builtins == 1
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1599 exec 'hi pythonBuiltinFunc' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1600 exec 'hi pythonBuiltinObj' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1601 else
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1602 exec 'hi pythonBuiltinFunc' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1603 exec 'hi pythonBuiltinObj' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1604 endif
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1605
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1606 " Java Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1607 exec 'hi javaExternal' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1608 exec 'hi javaAnnotation' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1609 exec 'hi javaTypedef' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1610 exec 'hi javaClassDecl' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1611 exec 'hi javaScopeDecl' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1612 exec 'hi javaStorageClass' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1613 exec 'hi javaBoolean' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1614 exec 'hi javaConstant' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1615 exec 'hi javaCommentTitle' . s:fg_wine
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1616 exec 'hi javaDocTags' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1617 exec 'hi javaDocComment' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1618 exec 'hi javaDocParam' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1619 exec 'hi javaStatement' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1620
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1621 " JavaScript Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1622 exec 'hi javaScriptBraces' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1623 exec 'hi javaScriptParens' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1624 exec 'hi javaScriptIdentifier' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1625 exec 'hi javaScriptFunction' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1626 exec 'hi javaScriptConditional' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1627 exec 'hi javaScriptRepeat' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1628 exec 'hi javaScriptBoolean' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1629 exec 'hi javaScriptNumber' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1630 exec 'hi javaScriptMember' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1631 exec 'hi javaScriptReserved' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1632 exec 'hi javascriptNull' . s:fg_comment . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1633 exec 'hi javascriptGlobal' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1634 exec 'hi javascriptStatement' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1635 exec 'hi javaScriptMessage' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1636 exec 'hi javaScriptMember' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1637
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1638 " TypeScript Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1639 exec 'hi typescriptDecorators' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1640 exec 'hi typescriptLabel' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1641
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1642 " @target https://github.com/pangloss/vim-javascript
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1643 exec 'hi jsImport' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1644 exec 'hi jsExport' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1645 exec 'hi jsModuleAs' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1646 exec 'hi jsFrom' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1647 exec 'hi jsExportDefault' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1648 exec 'hi jsFuncParens' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1649 exec 'hi jsFuncBraces' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1650 exec 'hi jsParens' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1651 exec 'hi jsBraces' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1652 exec 'hi jsNoise' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1653
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1654 " Jsx Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1655 " @target https://github.com/MaxMEllon/vim-jsx-pretty
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1656 exec 'hi jsxTagName' . s:fg_wine
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1657 exec 'hi jsxComponentName' . s:fg_wine
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1658 exec 'hi jsxAttrib' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1659 exec 'hi jsxEqual' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1660 exec 'hi jsxString' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1661 exec 'hi jsxCloseTag' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1662 exec 'hi jsxCloseString' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1663 exec 'hi jsxDot' . s:fg_wine
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1664 exec 'hi jsxNamespace' . s:fg_wine
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1665 exec 'hi jsxPunct' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1666
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1667 " Json Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1668 " @target https://github.com/elzr/vim-json
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1669 exec 'hi jsonKeyword' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1670 exec 'hi jsonString' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1671 exec 'hi jsonQuote' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1672 exec 'hi jsonNoise' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1673 exec 'hi jsonKeywordMatch' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1674 exec 'hi jsonBraces' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1675 exec 'hi jsonNumber' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1676 exec 'hi jsonNull' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1677 exec 'hi jsonBoolean' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1678 exec 'hi jsonCommentError' . s:fg_pink . s:bg_background
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1679
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1680 " Go Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1681 exec 'hi goDirective' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1682 exec 'hi goDeclaration' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1683 exec 'hi goStatement' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1684 exec 'hi goConditional' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1685 exec 'hi goConstants' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1686 exec 'hi goFunction' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1687 " exec 'hi goTodo' . s:fg_comment . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1688 exec 'hi goDeclType' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1689 exec 'hi goBuiltins' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1690
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1691 " Systemtap Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1692 " exec 'hi stapBlock' . s:fg_comment . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1693 exec 'hi stapComment' . s:fg_comment . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1694 exec 'hi stapProbe' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1695 exec 'hi stapStat' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1696 exec 'hi stapFunc' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1697 exec 'hi stapString' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1698 exec 'hi stapTarget' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1699 exec 'hi stapStatement' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1700 exec 'hi stapType' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1701 exec 'hi stapSharpBang' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1702 exec 'hi stapDeclaration' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1703 exec 'hi stapCMacro' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1704
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1705 " DTrace Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1706 exec 'hi dtraceProbe' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1707 exec 'hi dtracePredicate' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1708 exec 'hi dtraceComment' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1709 exec 'hi dtraceFunction' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1710 exec 'hi dtraceAggregatingFunction' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1711 exec 'hi dtraceStatement' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1712 exec 'hi dtraceIdentifier' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1713 exec 'hi dtraceOption' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1714 exec 'hi dtraceConstant' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1715 exec 'hi dtraceType' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1716
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1717 " PlantUML Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1718 exec 'hi plantumlPreProc' . s:fg_orange . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1719 exec 'hi plantumlDirectedOrVerticalArrowRL' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1720 exec 'hi plantumlDirectedOrVerticalArrowLR' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1721 exec 'hi plantumlString' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1722 exec 'hi plantumlActivityThing' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1723 exec 'hi plantumlText' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1724 exec 'hi plantumlClassPublic' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1725 exec 'hi plantumlClassPrivate' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1726 exec 'hi plantumlColonLine' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1727 exec 'hi plantumlClass' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1728 exec 'hi plantumlHorizontalArrow' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1729 exec 'hi plantumlTypeKeyword' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1730 exec 'hi plantumlKeyword' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1731
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1732 exec 'hi plantumlType' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1733 exec 'hi plantumlBlock' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1734 exec 'hi plantumlPreposition' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1735 exec 'hi plantumlLayout' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1736 exec 'hi plantumlNote' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1737 exec 'hi plantumlLifecycle' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1738 exec 'hi plantumlParticipant' . s:fg_foreground . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1739
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1740
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1741 " Haskell Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1742 exec 'hi haskellType' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1743 exec 'hi haskellIdentifier' . s:fg_orange . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1744 exec 'hi haskellOperators' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1745 exec 'hi haskellWhere' . s:fg_foreground . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1746 exec 'hi haskellDelimiter' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1747 exec 'hi haskellImportKeywords' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1748 exec 'hi haskellStatement' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1749
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1750
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1751 " SQL/MySQL Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1752 exec 'hi sqlStatement' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1753 exec 'hi sqlType' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1754 exec 'hi sqlKeyword' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1755 exec 'hi sqlOperator' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1756 exec 'hi sqlSpecial' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1757
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1758 exec 'hi mysqlVariable' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1759 exec 'hi mysqlType' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1760 exec 'hi mysqlKeyword' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1761 exec 'hi mysqlOperator' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1762 exec 'hi mysqlSpecial' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1763
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1764
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1765 " Octave/MATLAB Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1766 exec 'hi octaveVariable' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1767 exec 'hi octaveDelimiter' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1768 exec 'hi octaveQueryVar' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1769 exec 'hi octaveSemicolon' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1770 exec 'hi octaveFunction' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1771 exec 'hi octaveSetVar' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1772 exec 'hi octaveUserVar' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1773 exec 'hi octaveArithmeticOperator' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1774 exec 'hi octaveBeginKeyword' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1775 exec 'hi octaveElseKeyword' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1776 exec 'hi octaveEndKeyword' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1777 exec 'hi octaveStatement' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1778
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1779 " Ruby Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1780 exec 'hi rubyModule' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1781 exec 'hi rubyClass' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1782 exec 'hi rubyPseudoVariable' . s:fg_comment . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1783 exec 'hi rubyKeyword' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1784 exec 'hi rubyInstanceVariable' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1785 exec 'hi rubyFunction' . s:fg_foreground . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1786 exec 'hi rubyDefine' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1787 exec 'hi rubySymbol' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1788 exec 'hi rubyConstant' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1789 exec 'hi rubyAccess' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1790 exec 'hi rubyAttribute' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1791 exec 'hi rubyInclude' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1792 exec 'hi rubyLocalVariableOrMethod' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1793 exec 'hi rubyCurlyBlock' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1794 exec 'hi rubyCurlyBlockDelimiter' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1795 exec 'hi rubyArrayDelimiter' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1796 exec 'hi rubyStringDelimiter' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1797 exec 'hi rubyInterpolationDelimiter' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1798 exec 'hi rubyConditional' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1799 exec 'hi rubyRepeat' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1800 exec 'hi rubyControl' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1801 exec 'hi rubyException' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1802 exec 'hi rubyExceptional' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1803 exec 'hi rubyBoolean' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1804
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1805 " Fortran Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1806 exec 'hi fortranUnitHeader' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1807 exec 'hi fortranIntrinsic' . s:fg_blue . s:bg_background . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1808 exec 'hi fortranType' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1809 exec 'hi fortranTypeOb' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1810 exec 'hi fortranStructure' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1811 exec 'hi fortranStorageClass' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1812 exec 'hi fortranStorageClassR' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1813 exec 'hi fortranKeyword' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1814 exec 'hi fortranReadWrite' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1815 exec 'hi fortranIO' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1816 exec 'hi fortranOperator' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1817 exec 'hi fortranCall' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1818 exec 'hi fortranContinueMark' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1819
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1820 " ALGOL Highlighting (Plugin: https://github.com/sterpe/vim-algol68)
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1821 exec 'hi algol68Statement' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1822 exec 'hi algol68Operator' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1823 exec 'hi algol68PreProc' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1824 exec 'hi algol68Function' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1825
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1826 " R Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1827 exec 'hi rType' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1828 exec 'hi rArrow' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1829 exec 'hi rDollar' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1830
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1831 " XXD Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1832 exec 'hi xxdAddress' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1833 exec 'hi xxdSep' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1834 exec 'hi xxdAscii' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1835 exec 'hi xxdDot' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1836
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1837 " PHP Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1838 exec 'hi phpIdentifier' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1839 exec 'hi phpVarSelector' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1840 exec 'hi phpKeyword' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1841 exec 'hi phpRepeat' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1842 exec 'hi phpConditional' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1843 exec 'hi phpStatement' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1844 exec 'hi phpAssignByRef' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1845 exec 'hi phpSpecialFunction' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1846 exec 'hi phpFunctions' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1847 exec 'hi phpComparison' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1848 exec 'hi phpBackslashSequences' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1849 exec 'hi phpMemberSelector' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1850 exec 'hi phpStorageClass' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1851 exec 'hi phpDefine' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1852 exec 'hi phpIntVar' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1853
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1854 " Perl Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1855 exec 'hi perlFiledescRead' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1856 exec 'hi perlMatchStartEnd' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1857 exec 'hi perlStatementFlow' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1858 exec 'hi perlStatementStorage' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1859 exec 'hi perlFunction' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1860 exec 'hi perlMethod' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1861 exec 'hi perlStatementFiledesc' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1862 exec 'hi perlVarPlain' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1863 exec 'hi perlSharpBang' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1864 exec 'hi perlStatementInclude' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1865 exec 'hi perlStatementScalar' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1866 exec 'hi perlSubName' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1867 exec 'hi perlSpecialString' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1868
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1869 " Pascal Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1870 exec 'hi pascalType' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1871 exec 'hi pascalStatement' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1872 exec 'hi pascalPredefined' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1873 exec 'hi pascalFunction' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1874 exec 'hi pascalStruct' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1875 exec 'hi pascalOperator' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1876 exec 'hi pascalPreProc' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1877 exec 'hi pascalAcces' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1878
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1879 " Lua Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1880 exec 'hi luaFunc' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1881 exec 'hi luaIn' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1882 exec 'hi luaFunction' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1883 exec 'hi luaStatement' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1884 exec 'hi luaRepeat' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1885 exec 'hi luaCondStart' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1886 exec 'hi luaTable' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1887 exec 'hi luaConstant' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1888 exec 'hi luaElse' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1889 exec 'hi luaCondElseif' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1890 exec 'hi luaCond' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1891 exec 'hi luaCondEnd' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1892
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1893 " Clojure highlighting:
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1894 exec 'hi clojureConstant' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1895 exec 'hi clojureBoolean' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1896 exec 'hi clojureCharacter' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1897 exec 'hi clojureKeyword' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1898 exec 'hi clojureNumber' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1899 exec 'hi clojureString' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1900 exec 'hi clojureRegexp' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1901 exec 'hi clojureRegexpEscape' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1902 exec 'hi clojureParen' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1903 exec 'hi clojureVariable' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1904 exec 'hi clojureCond' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1905 exec 'hi clojureDefine' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1906 exec 'hi clojureException' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1907 exec 'hi clojureFunc' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1908 exec 'hi clojureMacro' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1909 exec 'hi clojureRepeat' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1910 exec 'hi clojureSpecial' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1911 exec 'hi clojureQuote' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1912 exec 'hi clojureUnquote' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1913 exec 'hi clojureMeta' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1914 exec 'hi clojureDeref' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1915 exec 'hi clojureAnonArg' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1916 exec 'hi clojureRepeat' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1917 exec 'hi clojureDispatch' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1918
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1919 " Dockerfile Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1920 " @target https://github.com/docker/docker/tree/master/contrib/syntax/vim
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1921 exec 'hi dockerfileKeyword' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1922 exec 'hi shDerefVar' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1923 exec 'hi shOperator' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1924 exec 'hi shOption' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1925 exec 'hi shLine' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1926 exec 'hi shWrapLineOperator' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1927
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1928 " NGINX Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1929 " @target https://github.com/evanmiller/nginx-vim-syntax
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1930 exec 'hi ngxDirectiveBlock' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1931 exec 'hi ngxDirective' . s:fg_blue . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1932 exec 'hi ngxDirectiveImportant' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1933 exec 'hi ngxString' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1934 exec 'hi ngxVariableString' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1935 exec 'hi ngxVariable' . s:fg_purple . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1936
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1937 " Yaml Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1938 exec 'hi yamlBlockMappingKey' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1939 exec 'hi yamlKeyValueDelimiter' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1940 exec 'hi yamlBlockCollectionItemStart' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1941
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1942 " Qt QML Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1943 exec 'hi qmlObjectLiteralType' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1944 exec 'hi qmlReserved' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1945 exec 'hi qmlBindingProperty' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1946 exec 'hi qmlType' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1947
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1948 " Dosini Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1949 exec 'hi dosiniHeader' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1950 exec 'hi dosiniLabel' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1951
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1952 " Mail highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1953 exec 'hi mailHeaderKey' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1954 exec 'hi mailHeaderEmail' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1955 exec 'hi mailSubject' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1956 exec 'hi mailHeader' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1957 exec 'hi mailURL' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1958 exec 'hi mailEmail' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1959 exec 'hi mailQuoted1' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1960 exec 'hi mailQuoted2' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1961
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1962 " XML Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1963 exec 'hi xmlProcessingDelim' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1964 exec 'hi xmlString' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1965 exec 'hi xmlEqual' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1966 exec 'hi xmlAttrib' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1967 exec 'hi xmlAttribPunct' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1968 exec 'hi xmlTag' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1969 exec 'hi xmlTagName' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1970 exec 'hi xmlEndTag' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1971 exec 'hi xmlNamespace' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1972
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1973 " Exlixir Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1974 " @target https://github.com/elixir-lang/vim-elixir
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1975 exec 'hi elixirAlias' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1976 exec 'hi elixirAtom' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1977 exec 'hi elixirVariable' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1978 exec 'hi elixirUnusedVariable' . s:fg_foreground . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1979 exec 'hi elixirInclude' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1980 exec 'hi elixirStringDelimiter' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1981 exec 'hi elixirKeyword' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1982 exec 'hi elixirFunctionDeclaration' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1983 exec 'hi elixirBlockDefinition' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1984 exec 'hi elixirDefine' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1985 exec 'hi elixirStructDefine' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1986 exec 'hi elixirPrivateDefine' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1987 exec 'hi elixirModuleDefine' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1988 exec 'hi elixirProtocolDefine' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1989 exec 'hi elixirImplDefine' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1990 exec 'hi elixirModuleDeclaration' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1991 exec 'hi elixirDocString' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1992 exec 'hi elixirDocTest' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1993
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1994 " Erlang Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1995 exec 'hi erlangBIF' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1996 exec 'hi erlangBracket' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1997 exec 'hi erlangLocalFuncCall' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1998 exec 'hi erlangVariable' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
1999 exec 'hi erlangAtom' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2000 exec 'hi erlangAttribute' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2001 exec 'hi erlangRecordDef' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2002 exec 'hi erlangRecord' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2003 exec 'hi erlangRightArrow' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2004 exec 'hi erlangStringModifier' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2005 exec 'hi erlangInclude' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2006 exec 'hi erlangKeyword' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2007 exec 'hi erlangGlobalFuncCall' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2008
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2009 " Cucumber Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2010 exec 'hi cucumberFeature' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2011 exec 'hi cucumberBackground' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2012 exec 'hi cucumberScenario' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2013 exec 'hi cucumberGiven' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2014 exec 'hi cucumberGivenAnd' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2015 exec 'hi cucumberThen' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2016 exec 'hi cucumberThenAnd' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2017 exec 'hi cucumberWhen' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2018 exec 'hi cucumberScenarioOutline' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2019 exec 'hi cucumberExamples' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2020 exec 'hi cucumberTags' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2021 exec 'hi cucumberPlaceholder' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2022
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2023 " Ada Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2024 exec 'hi adaInc' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2025 exec 'hi adaSpecial' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2026 exec 'hi adaKeyword' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2027 exec 'hi adaBegin' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2028 exec 'hi adaEnd' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2029 exec 'hi adaTypedef' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2030 exec 'hi adaAssignment' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2031 exec 'hi adaAttribute' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2032
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2033 " COBOL Highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2034 exec 'hi cobolMarker' . s:fg_comment . s:bg_cursorline
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2035 exec 'hi cobolLine' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2036 exec 'hi cobolReserved' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2037 exec 'hi cobolDivision' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2038 exec 'hi cobolDivisionName' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2039 exec 'hi cobolSection' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2040 exec 'hi cobolSectionName' . s:fg_navy . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2041 exec 'hi cobolParagraph' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2042 exec 'hi cobolParagraphName' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2043 exec 'hi cobolDeclA' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2044 exec 'hi cobolDecl' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2045 exec 'hi cobolCALLs' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2046 exec 'hi cobolEXECs' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2047
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2048 " GNU sed highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2049 exec 'hi sedST' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2050 exec 'hi sedFlag' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2051 exec 'hi sedRegexp47' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2052 exec 'hi sedRegexpMeta' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2053 exec 'hi sedReplacement47' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2054 exec 'hi sedReplaceMeta' . s:fg_orange . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2055 exec 'hi sedAddress' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2056 exec 'hi sedFunction' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2057 exec 'hi sedBranch' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2058 exec 'hi sedLabel' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2059
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2060 " GNU awk highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2061 exec 'hi awkPatterns' . s:fg_pink . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2062 exec 'hi awkSearch' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2063 exec 'hi awkRegExp' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2064 exec 'hi awkCharClass' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2065 exec 'hi awkFieldVars' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2066 exec 'hi awkStatement' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2067 exec 'hi awkFunction' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2068 exec 'hi awkVariables' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2069 exec 'hi awkArrayElement' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2070 exec 'hi awkOperator' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2071 exec 'hi awkBoolLogic' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2072 exec 'hi awkExpression' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2073 exec 'hi awkSpecialPrintf' . s:fg_olive . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2074
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2075 " Elm highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2076 exec 'hi elmImport' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2077 exec 'hi elmAlias' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2078 exec 'hi elmType' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2079 exec 'hi elmOperator' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2080 exec 'hi elmBraces' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2081 exec 'hi elmTypedef' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2082 exec 'hi elmTopLevelDecl' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2083
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2084 " Purescript highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2085 exec 'hi purescriptModuleKeyword' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2086 exec 'hi purescriptImportKeyword' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2087 exec 'hi purescriptModuleName' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2088 exec 'hi purescriptOperator' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2089 exec 'hi purescriptType' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2090 exec 'hi purescriptTypeVar' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2091 exec 'hi purescriptStructure' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2092 exec 'hi purescriptLet' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2093 exec 'hi purescriptFunction' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2094 exec 'hi purescriptDelimiter' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2095 exec 'hi purescriptStatement' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2096 exec 'hi purescriptConstructor' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2097 exec 'hi purescriptWhere' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2098
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2099 " F# highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2100 exec 'hi fsharpTypeName' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2101 exec 'hi fsharpCoreClass' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2102 exec 'hi fsharpType' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2103 exec 'hi fsharpKeyword' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2104 exec 'hi fsharpOperator' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2105 exec 'hi fsharpBoolean' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2106 exec 'hi fsharpFormat' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2107 exec 'hi fsharpLinq' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2108 exec 'hi fsharpKeyChar' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2109 exec 'hi fsharpOption' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2110 exec 'hi fsharpCoreMethod' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2111 exec 'hi fsharpAttrib' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2112 exec 'hi fsharpModifier' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2113 exec 'hi fsharpOpen' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2114
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2115 " ASN.1 highlighting
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2116 exec 'hi asnExternal' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2117 exec 'hi asnTagModifier' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2118 exec 'hi asnBraces' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2119 exec 'hi asnDefinition' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2120 exec 'hi asnStructure' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2121 exec 'hi asnType' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2122 exec 'hi asnTypeInfo' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2123 exec 'hi asnFieldOption' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2124
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2125 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2126
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2127 " Plugin: Netrw
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2128 exec 'hi netrwVersion' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2129 exec 'hi netrwList' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2130 exec 'hi netrwHidePat' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2131 exec 'hi netrwQuickHelp' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2132 exec 'hi netrwHelpCmd' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2133 exec 'hi netrwDir' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2134 exec 'hi netrwClassify' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2135 exec 'hi netrwExe' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2136 exec 'hi netrwSuffixes' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2137 exec 'hi netrwTreeBar' . s:fg_linenumber_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2138
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2139 " Plugin: NERDTree
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2140 exec 'hi NERDTreeUp' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2141 exec 'hi NERDTreeHelpCommand' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2142 exec 'hi NERDTreeHelpTitle' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2143 exec 'hi NERDTreeHelpKey' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2144 exec 'hi NERDTreeHelp' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2145 exec 'hi NERDTreeToggleOff' . s:fg_red
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2146 exec 'hi NERDTreeToggleOn' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2147 exec 'hi NERDTreeDir' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2148 exec 'hi NERDTreeDirSlash' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2149 exec 'hi NERDTreeFile' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2150 exec 'hi NERDTreeExecFile' . s:fg_green
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2151 exec 'hi NERDTreeOpenable' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2152 exec 'hi NERDTreeClosable' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2153
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2154 " Plugin: Tagbar
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2155 exec 'hi TagbarHelpTitle' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2156 exec 'hi TagbarHelp' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2157 exec 'hi TagbarKind' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2158 exec 'hi TagbarSignature' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2159
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2160 " Plugin: Vimdiff
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2161 exec 'hi DiffAdd' . s:fg_diffadd_fg . s:bg_diffadd_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2162 exec 'hi DiffChange' . s:fg_diffchange_fg . s:bg_diffchange_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2163 exec 'hi DiffDelete' . s:fg_diffdelete_fg . s:bg_diffdelete_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2164 exec 'hi DiffText' . s:fg_difftext_fg . s:bg_difftext_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2165
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2166 " Plugin: AGit
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2167 exec 'hi agitHead' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2168 exec 'hi agitHeader' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2169 exec 'hi agitStatAdded' . s:fg_diffadd_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2170 exec 'hi agitStatRemoved' . s:fg_diffdelete_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2171 exec 'hi agitDiffAdd' . s:fg_diffadd_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2172 exec 'hi agitDiffRemove' . s:fg_diffdelete_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2173 exec 'hi agitDiffHeader' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2174 exec 'hi agitDiff' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2175 exec 'hi agitDiffIndex' . s:fg_purple
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2176 exec 'hi agitDiffFileName' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2177 exec 'hi agitLog' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2178 exec 'hi agitAuthorMark' . s:fg_olive
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2179 exec 'hi agitDateMark' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2180 exec 'hi agitHeaderLabel' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2181 exec 'hi agitDate' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2182 exec 'hi agitTree' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2183 exec 'hi agitRef' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2184 exec 'hi agitRemote' . s:fg_purple . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2185 exec 'hi agitTag' . s:fg_orange . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2186
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2187 " Plugin: Spell Checking
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2188 exec 'hi SpellBad' . s:fg_foreground . s:bg_spellbad
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2189 exec 'hi SpellCap' . s:fg_foreground . s:bg_spellcap
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2190 exec 'hi SpellRare' . s:fg_foreground . s:bg_spellrare
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2191 exec 'hi SpellLocal' . s:fg_foreground . s:bg_spelllocal
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2192
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2193 " Plugin: Indent Guides
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2194 exec 'hi IndentGuidesOdd' . s:bg_background
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2195 exec 'hi IndentGuidesEven' . s:bg_cursorline
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2196
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2197 " Plugin: Startify
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2198 exec 'hi StartifyFile' . s:fg_blue . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2199 exec 'hi StartifyNumber' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2200 exec 'hi StartifyHeader' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2201 exec 'hi StartifySection' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2202 exec 'hi StartifyPath' . s:fg_foreground
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2203 exec 'hi StartifySlash' . s:fg_navy
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2204 exec 'hi StartifyBracket' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2205 exec 'hi StartifySpecial' . s:fg_aqua
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2206
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2207 " Plugin: Signify
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2208 exec 'hi SignifyLineChange' . s:fg_diffchange_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2209 exec 'hi SignifySignChange' . s:fg_diffchange_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2210 exec 'hi SignifyLineAdd' . s:fg_diffadd_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2211 exec 'hi SignifySignAdd' . s:fg_diffadd_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2212 exec 'hi SignifyLineDelete' . s:fg_diffdelete_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2213 exec 'hi SignifySignDelete' . s:fg_diffdelete_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2214
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2215 " Git commit message
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2216 exec 'hi gitcommitSummary' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2217 exec 'hi gitcommitHeader' . s:fg_green . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2218 exec 'hi gitcommitSelectedType' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2219 exec 'hi gitcommitSelectedFile' . s:fg_pink
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2220 exec 'hi gitcommitUntrackedFile' . s:fg_diffdelete_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2221 exec 'hi gitcommitBranch' . s:fg_aqua . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2222 exec 'hi gitcommitDiscardedType' . s:fg_diffdelete_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2223 exec 'hi gitcommitDiff' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2224
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2225 exec 'hi diffFile' . s:fg_blue
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2226 exec 'hi diffSubname' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2227 exec 'hi diffIndexLine' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2228 exec 'hi diffAdded' . s:fg_diffadd_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2229 exec 'hi diffRemoved' . s:fg_diffdelete_fg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2230 exec 'hi diffLine' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2231 exec 'hi diffBDiffer' . s:fg_orange
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2232 exec 'hi diffNewFile' . s:fg_comment
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2233
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2234 " Pluging: CoC
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2235 exec 'hi CocFloating' . s:fg_popupmenu_fg . s:bg_popupmenu_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2236 exec 'hi CocErrorFloat' . s:fg_popupmenu_fg . s:bg_popupmenu_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2237 exec 'hi CocWarningFloat' . s:fg_popupmenu_fg . s:bg_popupmenu_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2238 exec 'hi CocInfoFloat' . s:fg_popupmenu_fg . s:bg_popupmenu_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2239 exec 'hi CocHintFloat' . s:fg_popupmenu_fg . s:bg_popupmenu_bg . s:ft_none
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2240
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2241 exec 'hi CocErrorHighlight' . s:fg_foreground . s:bg_spellbad
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2242 exec 'hi CocWarningHighlight' . s:fg_foreground . s:bg_spellcap
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2243 exec 'hi CocInfoHighlight' . s:fg_foreground . s:bg_spellcap
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2244 exec 'hi CocHintHighlight' . s:fg_foreground . s:bg_spellcap
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2245
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2246 exec 'hi CocErrorSign' . s:fg_error_fg . s:bg_error_bg
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2247 exec 'hi CocWarningSign' . s:fg_todo_fg . s:bg_todo_bg . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2248 exec 'hi CocInfoSign' . s:fg_todo_fg . s:bg_todo_bg . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2249 exec 'hi CocHintSign' . s:fg_todo_fg . s:bg_todo_bg . s:ft_bold
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2250
673
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2251 " Debug Adapter Protocol (DAP) - Plugin: rcarriga/nvim-dap-ui
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2252 if has('nvim')
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2253 exec 'hi DapUIDecoration' . s:fg_blue
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2254 " DAP Scopes window
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2255 hi! link DapUIType Type
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2256 hi! link DapUIVariable Identifier
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2257 exec 'hi DapUIScope' . s:fg_red . s:ft_bold
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2258 hi! link DapUIValue Number
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2259 exec 'hi DapUIModifiedValue' . s:fg_orange . s:ft_bold . s:bg_error_bg
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2260 " DAP Breakpoints window
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2261 hi! link DapUILineNumber LineNr
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2262 hi! link DapUIBreakpointsDisabledLine LineNr
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2263 exec 'hi DapUIBreakpointsCurrentLine' . s:fg_linenumber_fg . s:ft_bold . s:bg_error_bg
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2264 exec 'hi DapUIBreakpointsInfo' . s:fg_green
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2265 exec 'hi DapUIBreakpointsPath' . s:fg_olive . s:ft_bold
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2266 " DAP Stacks window
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2267 exec 'hi DapUIFrameName' . s:fg_blue
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2268 exec 'hi DapUIThread' . s:fg_pink . s:ft_bold
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2269 exec 'hi DapUIStoppedThread' . s:fg_pink
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2270 " DAP Watches window
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2271 exec 'hi DapUIWatchesEmpty' . s:fg_pink . s:ft_bold
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2272 hi! link DapUIWatchesError DapUIWatchesEmpty
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2273 hi! link DapUIWatchesValue Number
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2274 " DAP Breakpoints window
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2275 exec 'hi DapUISource' . s:fg_olive
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2276 " DAP Floating window
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2277 exec 'hi DapUIFloatBorder' . s:fg_blue
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2278 endif
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2279
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2280 " Plugin: hrsh7th/nvim-cmp
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2281 if has('nvim')
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2282 hi! link CmpItemKindValue Number
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2283 hi! link CmpItemKindVariable Identifier
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2284 hi! link CmpItemKindKeyword Keyword
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2285 hi! link CmpItemKindField CmpItemKindVariable
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2286 exec 'hi CmpItemKindFunction' . s:fg_blue
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2287 hi! link CmpItemKindMethod CmpItemKindFunction
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2288 hi! link CmpItemKindConstructor CmpItemKindFunction
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2289 hi! link CmpItemKindClass Structure
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2290 hi! link CmpItemKindInterface Structure
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2291 exec 'hi CmpItemKindSnippet' . s:fg_orange
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2292 exec 'hi CmpItemKindFile' . s:fg_orange
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2293 hi! link CmpItemKindFolder CmpItemKindFile
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2294 exec 'hi CmpItemAbbrMatch' . s:fg_blue . s:ft_bold
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2295 exec 'hi CmpItemAbbrMatchFuzzy' . s:fg_blue . s:ft_bold
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2296 exec 'hi CmpItemAbbrDeprecated' . s:fg_foreground . ' gui=strikethrough'
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2297 endif
6cdd7d26260d [vim] Update syntaxes and colors
nanaya <me@nanaya.pro>
parents: 662
diff changeset
2298
662
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2299 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2300 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2301
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2302 " ================================== MISC =====================================
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2303 " Command to show theme information {{{
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2304 fun! g:PaperColor()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2305 echom 'PaperColor Theme Framework'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2306 echom ' version ' . s:version
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2307 echom ' by Nikyle Nguyen et al.'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2308 echom ' at https://github.com/NLKNguyen/papercolor-theme/'
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2309 echom ' '
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2310 echom 'Current theme: ' . s:theme_name
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2311 echom ' ' . s:selected_theme['description']
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2312 echom ' by ' . s:selected_theme['maintainer']
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2313 echom ' at ' . s:selected_theme['source']
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2314
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2315 " TODO: add diff display for theme color names between 'default' and current
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2316 " theme if it is a custom theme, i.e. child theme.
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2317 endfun
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2318
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2319 " @brief command alias for g:PaperColor()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2320 command! -nargs=0 PaperColor :call g:PaperColor()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2321 " }}}
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2322
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2323 " =============================== MAIN ========================================
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2324
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2325 hi clear
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2326 syntax reset
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2327 let g:colors_name = "PaperColor"
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2328
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2329 call s:acquire_theme_data()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2330 call s:identify_color_mode()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2331
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2332 call s:generate_theme_option_variables()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2333 call s:generate_language_option_variables()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2334
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2335 call s:set_format_attributes()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2336 call s:set_overriding_colors()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2337
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2338 call s:convert_colors()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2339 call s:set_color_variables()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2340
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2341 call s:apply_syntax_highlightings()
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2342
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2343 " =============================================================================
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2344 " Cheers!
f280738a90a6 [vim] vendor theme and add some more
nanaya <me@nanaya.pro>
parents:
diff changeset
2345 " vim: fdm=marker ff=unix