Mercurial > ec-dotfiles
annotate vendor/vim-packs/srcery-vim/colors/srcery.vim @ 739:2cf87b7ca09a default tip
Update vendored stuff
author | nanaya <me@nanaya.net> |
---|---|
date | Thu, 09 Jan 2025 03:28:23 +0900 |
parents | 78469331407e |
children |
rev | line source |
---|---|
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
1 " 'srcery.vim' -- Vim color scheme. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
2 " Maintainer: Roosta (mail@roosta.sh) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
3 " Description: Colorscheme that focus ease of use and clearly defined contrasting colors with a slightly earthy tone. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
4 " Original Source: https://github.com/morhetz/gruvbox |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
5 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
6 scriptencoding utf-8 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
7 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
8 set background=dark |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
9 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
10 if v:version > 580 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
11 hi clear |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
12 if exists('syntax_on') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
13 syntax reset |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
14 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
15 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
16 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
17 let g:colors_name='srcery' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
18 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
19 if !has('gui_running') && &t_Co != 256 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
20 finish |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
21 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
22 |
739 | 23 " Setup Variables: {{{ |
24 | |
25 " Colors {{{ | |
26 | |
27 if !exists('g:srcery_black') | |
28 let g:srcery_black='#1C1B19' | |
29 endif | |
30 | |
31 if !exists('g:srcery_red') | |
32 let g:srcery_red='#EF2F27' | |
33 endif | |
34 | |
35 if !exists('g:srcery_green') | |
36 let g:srcery_green='#519F50' | |
37 endif | |
38 | |
39 if !exists('g:srcery_yellow') | |
40 let g:srcery_yellow='#FBB829' | |
41 endif | |
42 | |
43 if !exists('g:srcery_blue') | |
44 let g:srcery_blue='#2C78BF' | |
45 endif | |
46 | |
47 if !exists('g:srcery_magenta') | |
48 let g:srcery_magenta='#E02C6D' | |
49 endif | |
50 | |
51 if !exists('g:srcery_cyan') | |
52 let g:srcery_cyan='#0AAEB3' | |
53 endif | |
54 | |
55 if !exists('g:srcery_white') | |
56 let g:srcery_white='#BAA67F' | |
57 endif | |
58 | |
59 if !exists('g:srcery_bright_black') | |
60 let g:srcery_bright_black='#918175' | |
61 endif | |
62 | |
63 if !exists('g:srcery_bright_red') | |
64 let g:srcery_bright_red='#F75341' | |
65 endif | |
66 | |
67 if !exists('g:srcery_bright_green') | |
68 let g:srcery_bright_green='#98BC37' | |
69 endif | |
70 | |
71 if !exists('g:srcery_bright_yellow') | |
72 let g:srcery_bright_yellow='#FED06E' | |
73 endif | |
74 | |
75 if !exists('g:srcery_bright_blue') | |
76 let g:srcery_bright_blue='#68A8E4' | |
77 endif | |
78 | |
79 if !exists('g:srcery_bright_magenta') | |
80 let g:srcery_bright_magenta='#FF5C8F' | |
81 endif | |
82 | |
83 if !exists('g:srcery_bright_cyan') | |
84 let g:srcery_bright_cyan='#2BE4D0' | |
85 endif | |
86 | |
87 if !exists('g:srcery_bright_white') | |
88 let g:srcery_bright_white='#FCE8C3' | |
89 endif | |
90 | |
91 if !exists('g:srcery_orange') | |
92 let g:srcery_orange='#FF5F00' | |
93 endif | |
94 | |
95 if !exists('g:srcery_orange_cterm') | |
96 let g:srcery_orange_cterm=202 | |
97 endif | |
98 | |
99 if !exists('g:srcery_bright_orange') | |
100 let g:srcery_bright_orange='#FF8700' | |
101 endif | |
102 | |
103 if !exists('g:srcery_bright_orange_cterm') | |
104 let g:srcery_bright_orange_cterm=208 | |
105 endif | |
106 | |
107 if !exists('g:srcery_hard_black') | |
108 let g:srcery_hard_black='#121212' | |
109 endif | |
110 | |
111 if !exists('g:srcery_hard_black_cterm') | |
112 let g:srcery_hard_black_cterm=233 | |
113 endif | |
114 | |
115 if !exists('g:srcery_xgray1') | |
116 let g:srcery_xgray1='#262626' | |
117 endif | |
118 | |
119 if !exists('g:srcery_xgray1_cterm') | |
120 let g:srcery_xgray1_cterm=235 | |
121 endif | |
122 | |
123 if !exists('g:srcery_xgray2') | |
124 let g:srcery_xgray2='#303030' | |
125 endif | |
126 | |
127 if !exists('g:srcery_xgray2_cterm') | |
128 let g:srcery_xgray2_cterm=236 | |
129 endif | |
130 | |
131 if !exists('g:srcery_xgray3') | |
132 let g:srcery_xgray3='#3A3A3A' | |
133 endif | |
134 | |
135 if !exists('g:srcery_xgray3_cterm') | |
136 let g:srcery_xgray3_cterm=237 | |
137 endif | |
138 | |
139 if !exists('g:srcery_xgray4') | |
140 let g:srcery_xgray4='#444444' | |
141 endif | |
142 | |
143 if !exists('g:srcery_xgray4_cterm') | |
144 let g:srcery_xgray4_cterm=238 | |
145 endif | |
146 | |
147 if !exists('g:srcery_xgray5') | |
148 let g:srcery_xgray5='#4E4E4E' | |
149 endif | |
150 | |
151 if !exists('g:srcery_xgray5_cterm') | |
152 let g:srcery_xgray5_cterm=239 | |
153 endif | |
154 | |
155 if !exists('g:srcery_xgray6') | |
156 let g:srcery_xgray6='#585858' | |
157 endif | |
158 | |
159 if !exists('g:srcery_xgray6_cterm') | |
160 let g:srcery_xgray6_cterm=240 | |
161 endif | |
162 | |
163 " }}} | |
164 " Options {{{ | |
165 | |
166 if !exists('g:srcery_bold') | |
167 let g:srcery_bold=1 | |
168 endif | |
169 | |
170 if !exists('g:srcery_italic') | |
171 if has('gui_running') || $TERM_ITALICS ==? 'true' | |
172 let g:srcery_italic=1 | |
173 else | |
174 let g:srcery_italic=0 | |
175 endif | |
176 endif | |
177 | |
178 if !exists('g:srcery_undercurl') | |
179 let g:srcery_undercurl=1 | |
180 endif | |
181 | |
182 if !exists('g:srcery_underline') | |
183 let g:srcery_underline=1 | |
184 endif | |
185 | |
186 if !exists('g:srcery_strikethrough') | |
187 let g:srcery_strikethrough=1 | |
188 endif | |
189 | |
190 if !exists('g:srcery_inverse') | |
191 let g:srcery_inverse=1 | |
192 endif | |
193 | |
194 if !exists('g:srcery_inverse_matches') | |
195 let g:srcery_inverse_matches=0 | |
196 endif | |
197 | |
198 if !exists('g:srcery_inverse_match_paren') | |
199 let g:srcery_inverse_match_paren=0 | |
200 endif | |
201 | |
202 if !exists('g:srcery_dim_lisp_paren') | |
203 let g:srcery_dim_lisp_paren=0 | |
204 endif | |
205 | |
206 if !exists('g:srcery_guisp_fallback') || index(['fg', 'bg'], g:srcery_guisp_fallback) == -1 | |
207 let g:srcery_guisp_fallback='NONE' | |
208 endif | |
209 | |
210 if !exists('g:srcery_italic_types') | |
211 let g:srcery_italic_types=0 | |
212 endif | |
213 | |
214 if !exists('g:srcery_bg') | |
215 "Sets the default color for both guisp and cterm backgrounds. | |
216 let g:srcery_bg=[g:srcery_black, 0] | |
217 elseif (index(g:srcery_bg, 'DEFAULT') >= 0) || (index(g:srcery_bg, 'NONE') >= 0 && has('gui_running')) | |
218 "Defaults should be set if the user specifies it, or if the background is set as 'NONE' whilst the gui is running. | |
219 for i in [0, 1] | |
220 if g:srcery_bg[i] ==# 'DEFAULT' || (g:srcery_bg[i] ==# 'NONE' && has('gui_running')) | |
221 let g:srcery_bg[i] = (i==1 ? 0 : g:srcery_black) | |
222 endif | |
223 endfor | |
224 endif | |
225 | |
226 if !exists('g:srcery_hard_black_terminal_bg') | |
227 let g:srcery_hard_black_terminal_bg=1 | |
228 endif | |
229 | |
230 " }}} | |
231 | |
232 " }}} | |
233 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
234 " Palette {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
235 |
739 | 236 let s:none = ['NONE', 'NONE'] |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
237 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
238 " 16 base colors |
739 | 239 let s:black = [g:srcery_black, 0] |
240 let s:red = [g:srcery_red, 1] | |
241 let s:green = [g:srcery_green, 2] | |
242 let s:yellow = [g:srcery_yellow, 3] | |
243 let s:blue = [g:srcery_blue, 4] | |
244 let s:magenta = [g:srcery_magenta, 5] | |
245 let s:cyan = [g:srcery_cyan, 6] | |
246 let s:white = [g:srcery_white, 7] | |
247 let s:bright_black = [g:srcery_bright_black, 8] | |
248 let s:bright_red = [g:srcery_bright_red, 9] | |
249 let s:bright_green = [g:srcery_bright_green, 10] | |
250 let s:bright_yellow = [g:srcery_bright_yellow, 11] | |
251 let s:bright_blue = [g:srcery_bright_blue, 12] | |
252 let s:bright_magenta = [g:srcery_bright_magenta, 13] | |
253 let s:bright_cyan = [g:srcery_bright_cyan, 14] | |
254 let s:bright_white = [g:srcery_bright_white, 15] | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
255 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
256 " xterm colors |
739 | 257 let s:orange = [g:srcery_orange, g:srcery_orange_cterm] |
258 let s:bright_orange = [g:srcery_bright_orange, g:srcery_bright_orange_cterm] | |
259 let s:hard_black = [g:srcery_hard_black, g:srcery_hard_black_cterm] | |
260 let s:xgray1 = [g:srcery_xgray1, g:srcery_xgray1_cterm] | |
261 let s:xgray2 = [g:srcery_xgray2, g:srcery_xgray2_cterm] | |
262 let s:xgray3 = [g:srcery_xgray3, g:srcery_xgray3_cterm] | |
263 let s:xgray4 = [g:srcery_xgray4, g:srcery_xgray4_cterm] | |
264 let s:xgray5 = [g:srcery_xgray5, g:srcery_xgray5_cterm] | |
265 let s:xgray6 = [g:srcery_xgray6, g:srcery_xgray6_cterm] | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
266 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
267 "}}} |
739 | 268 |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
269 " Setup Emphasis: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
270 |
739 | 271 let s:bold = 'bold,' |
272 if g:srcery_bold == 0 | |
273 let s:bold = '' | |
274 endif | |
275 | |
276 let s:italic = 'italic,' | |
277 if g:srcery_italic == 0 | |
278 let s:italic = '' | |
279 endif | |
280 | |
281 let s:underline = 'underline,' | |
282 if g:srcery_underline == 0 | |
283 let s:underline = '' | |
284 endif | |
285 | |
286 let s:undercurl = 'undercurl,' | |
287 if g:srcery_undercurl == 0 | |
288 let s:undercurl = '' | |
289 endif | |
290 | |
291 let s:inverse = 'inverse,' | |
292 if g:srcery_inverse == 0 | |
293 let s:inverse = '' | |
294 endif | |
295 | |
296 let s:strikethrough = 'strikethrough,' | |
297 if g:srcery_strikethrough == 0 | |
298 let s:strikethrough = '' | |
299 endif | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
300 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
301 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
302 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
303 " Highlighting Function: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
304 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
305 function! s:HL(group, fg, ...) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
306 " Arguments: group, guifg, guibg, gui, guisp |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
307 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
308 " foreground |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
309 let l:fg = a:fg |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
310 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
311 " background |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
312 if a:0 >= 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
313 let l:bg = a:1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
314 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
315 let l:bg = s:none |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
316 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
317 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
318 " emphasis |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
319 if a:0 >= 2 && strlen(a:2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
320 let l:emstr = a:2 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
321 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
322 let l:emstr = 'NONE,' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
323 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
324 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
325 " special fallback |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
326 if a:0 >= 3 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
327 if g:srcery_guisp_fallback !=# 'NONE' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
328 let fg = a:3 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
329 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
330 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
331 " bg fallback mode should invert higlighting |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
332 if g:srcery_guisp_fallback ==# 'bg' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
333 let emstr .= 'inverse,' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
334 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
335 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
336 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
337 let l:histring = [ 'hi', a:group, |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
338 \ 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
339 \ 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
340 \ 'gui=' . l:emstr[:-2], 'cterm=' . l:emstr[:-2] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
341 \ ] |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
342 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
343 " special |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
344 if a:0 >= 3 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
345 call add(l:histring, 'guisp=' . a:3[0]) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
346 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
347 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
348 execute join(l:histring, ' ') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
349 endfunction |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
350 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
351 "}}} |
739 | 352 |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
353 " Srcery Hi Groups: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
354 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
355 " memoize common hi groups |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
356 call s:HL('SrceryRed', s:red) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
357 call s:HL('SrceryGreen', s:green) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
358 call s:HL('SrceryYellow', s:yellow) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
359 call s:HL('SrceryBlue', s:blue) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
360 call s:HL('SrceryMagenta', s:magenta) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
361 call s:HL('SrceryCyan', s:cyan) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
362 call s:HL('SrceryBlack', s:black) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
363 call s:HL('SrceryWhite', s:white) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
364 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
365 call s:HL('SrceryRedBold', s:red, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
366 call s:HL('SrceryGreenBold', s:green, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
367 call s:HL('SrceryYellowBold', s:yellow, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
368 call s:HL('SrceryBlueBold', s:blue, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
369 call s:HL('SrceryMagentaBold', s:magenta, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
370 call s:HL('SrceryCyanBold', s:cyan, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
371 call s:HL('SrceryBlackBold', s:black, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
372 call s:HL('SrceryWhiteBold', s:white, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
373 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
374 call s:HL('SrceryBrightRed', s:bright_red, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
375 call s:HL('SrceryBrightGreen', s:bright_green, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
376 call s:HL('SrceryBrightYellow', s:bright_yellow, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
377 call s:HL('SrceryBrightBlue', s:bright_blue, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
378 call s:HL('SrceryBrightMagenta', s:bright_magenta, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
379 call s:HL('SrceryBrightCyan', s:bright_cyan, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
380 call s:HL('SrceryBrightBlack', s:bright_black, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
381 call s:HL('SrceryBrightWhite', s:bright_white) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
382 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
383 call s:HL('SrceryBrightRedBold', s:bright_red, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
384 call s:HL('SrceryBrightGreenBold', s:bright_green, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
385 call s:HL('SrceryBrightYellowBold', s:bright_yellow, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
386 call s:HL('SrceryBrightBlueBold', s:bright_blue, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
387 call s:HL('SrceryBrightMagentaBold', s:bright_magenta, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
388 call s:HL('SrceryBrightCyanBold', s:bright_cyan, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
389 call s:HL('SrceryBrightBlackBold', s:bright_black, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
390 call s:HL('SrceryBrightWhiteBold', s:bright_white, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
391 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
392 " special |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
393 call s:HL('SrceryOrange', s:orange) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
394 call s:HL('SrceryBrightOrange', s:bright_orange) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
395 call s:HL('SrceryOrangeBold', s:orange, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
396 call s:HL('SrceryHardBlack', s:hard_black) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
397 call s:HL('SrceryXgray1', s:xgray1) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
398 call s:HL('SrceryXgray2', s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
399 call s:HL('SrceryXgray3', s:xgray3) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
400 call s:HL('SrceryXgray4', s:xgray4) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
401 call s:HL('SrceryXgray5', s:xgray5) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
402 call s:HL('SrceryXgray6', s:xgray6) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
403 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
404 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
405 |
739 | 406 " Setup Terminal Colors For Neovim: {{{ |
407 | |
408 if has('nvim') | |
409 let g:terminal_color_0 = s:black[0] | |
410 let g:terminal_color_8 = s:bright_black[0] | |
411 | |
412 let g:terminal_color_1 = s:red[0] | |
413 let g:terminal_color_9 = s:bright_red[0] | |
414 | |
415 let g:terminal_color_2 = s:green[0] | |
416 let g:terminal_color_10 = s:bright_green[0] | |
417 | |
418 let g:terminal_color_3 = s:yellow[0] | |
419 let g:terminal_color_11 = s:bright_yellow[0] | |
420 | |
421 let g:terminal_color_4 = s:blue[0] | |
422 let g:terminal_color_12 = s:bright_blue[0] | |
423 | |
424 let g:terminal_color_5 = s:magenta[0] | |
425 let g:terminal_color_13 = s:bright_magenta[0] | |
426 | |
427 let g:terminal_color_6 = s:cyan[0] | |
428 let g:terminal_color_14 = s:bright_cyan[0] | |
429 | |
430 let g:terminal_color_7 = s:white[0] | |
431 let g:terminal_color_15 = s:bright_white[0] | |
432 endif | |
433 | |
434 " }}} | |
435 | |
436 " Setup Terminal Colors For Vim with termguicolors: {{{ | |
437 | |
438 if exists('*term_setansicolors') | |
439 let g:terminal_ansi_colors = repeat([0], 16) | |
440 | |
441 let g:terminal_ansi_colors[0] = s:black[0] | |
442 let g:terminal_ansi_colors[8] = s:bright_black[0] | |
443 | |
444 let g:terminal_ansi_colors[1] = s:red[0] | |
445 let g:terminal_ansi_colors[9] = s:bright_red[0] | |
446 | |
447 let g:terminal_ansi_colors[2] = s:green[0] | |
448 let g:terminal_ansi_colors[10] = s:bright_green[0] | |
449 | |
450 let g:terminal_ansi_colors[3] = s:yellow[0] | |
451 let g:terminal_ansi_colors[11] = s:bright_yellow[0] | |
452 | |
453 let g:terminal_ansi_colors[4] = s:blue[0] | |
454 let g:terminal_ansi_colors[12] = s:bright_blue[0] | |
455 | |
456 let g:terminal_ansi_colors[5] = s:magenta[0] | |
457 let g:terminal_ansi_colors[13] = s:bright_magenta[0] | |
458 | |
459 let g:terminal_ansi_colors[6] = s:cyan[0] | |
460 let g:terminal_ansi_colors[14] = s:bright_cyan[0] | |
461 | |
462 let g:terminal_ansi_colors[7] = s:white[0] | |
463 let g:terminal_ansi_colors[15] = s:bright_white[0] | |
464 endif | |
465 | |
466 " }}} | |
467 | |
468 " Vanilla Colorscheme: {{{ | |
469 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
470 " General UI: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
471 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
472 " Normal text |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
473 " |
726 | 474 call s:HL('Normal', s:bright_white, g:srcery_bg) |
475 | |
476 call s:HL('FloatBorder', s:white, g:srcery_bg) | |
477 call s:HL('NormalFloat', s:none, s:xgray2) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
478 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
479 if v:version >= 700 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
480 " Screen line that the cursor is |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
481 call s:HL('CursorLine', s:none, s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
482 " Screen column that the cursor is |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
483 hi! link CursorColumn CursorLine |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
484 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
485 call s:HL('TabLineFill', s:bright_black, s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
486 call s:HL('TabLineSel', s:bright_white, s:xgray5) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
487 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
488 " Not active tab page label |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
489 hi! link TabLine TabLineFill |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
490 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
491 " Match paired bracket under the cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
492 " |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
493 if g:srcery_inverse_match_paren == 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
494 call s:HL('MatchParen', s:bright_magenta, s:none, s:inverse . s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
495 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
496 call s:HL('MatchParen', s:bright_magenta, s:none, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
497 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
498 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
499 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
500 if v:version >= 703 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
501 " Highlighted screen columns |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
502 call s:HL('ColorColumn', s:none, s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
503 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
504 " Concealed element: \lambda → λ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
505 call s:HL('Conceal', s:blue, s:none) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
506 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
507 " Line number of CursorLine |
726 | 508 call s:HL('CursorLineNr', s:yellow, g:srcery_bg) |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
509 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
510 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
511 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
512 hi! link NonText SrceryXgray4 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
513 hi! link SpecialKey SrceryBlue |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
514 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
515 if g:srcery_inverse == 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
516 call s:HL('Visual', s:none, s:none, s:inverse) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
517 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
518 call s:HL('Visual', s:none, s:xgray2, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
519 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
520 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
521 hi! link VisualNOS Visual |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
522 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
523 if g:srcery_inverse == 1 && g:srcery_inverse_matches == 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
524 call s:HL('Search', s:none, s:none, s:inverse) |
726 | 525 call s:HL('IncSearch', s:none, s:none, s:underline . s:inverse . s:bold) |
526 call s:HL('CurSearch', s:none, s:none, s:underline . s:inverse . s:bold) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
527 else |
726 | 528 call s:HL('Search', s:none, s:xgray5) |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
529 call s:HL('IncSearch', s:none, s:xgray5, s:underline . s:bold) |
726 | 530 call s:HL('CurSearch', s:none, s:xgray5, s:underline . s:bold) |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
531 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
532 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
533 call s:HL('Underlined', s:blue, s:none, s:underline) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
534 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
535 call s:HL('StatusLine', s:bright_white, s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
536 |
726 | 537 call s:HL('StatusLineNC', s:bright_black, g:srcery_bg, s:underline) |
538 " The column separating vertically split windows | |
539 call s:HL('VertSplit', s:bright_white, g:srcery_bg) | |
540 " Current match in wildmenu completion | |
541 call s:HL('WildMenu', s:blue, g:srcery_bg, s:bold) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
542 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
543 " Directory names, special names in listing |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
544 hi! link Directory SrceryGreenBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
545 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
546 " Titles for output from :set all, :autocmd, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
547 hi! link Title SrceryGreenBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
548 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
549 " Error messages on the command line |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
550 call s:HL('ErrorMsg', s:bright_white, s:red) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
551 " More prompt: -- More -- |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
552 hi! link MoreMsg SrceryYellowBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
553 " Current mode message: -- INSERT -- |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
554 hi! link ModeMsg SrceryYellowBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
555 " 'Press enter' prompt and yes/no questions |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
556 hi! link Question SrceryOrangeBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
557 " Warning messages |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
558 hi! link WarningMsg SrceryRedBold |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
559 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
560 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
561 " Gutter: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
562 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
563 " Line number for :number and :# commands |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
564 call s:HL('LineNr', s:bright_black) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
565 |
726 | 566 " Column where signs are displayed |
567 " TODO Possibly need to fix SignColumn | |
568 call s:HL('SignColumn', s:none, g:srcery_bg) | |
569 " Line used for closed folds | |
570 call s:HL('Folded', s:bright_black, g:srcery_bg, s:italic) | |
571 " Column where folds are displayed | |
572 call s:HL('FoldColumn', s:bright_black, g:srcery_bg) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
573 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
574 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
575 " Cursor: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
576 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
577 " Character under cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
578 call s:HL('Cursor', s:black, s:yellow) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
579 " Visual mode cursor, selection |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
580 hi! link vCursor Cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
581 " Input moder cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
582 hi! link iCursor Cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
583 " Language mapping cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
584 hi! link lCursor Cursor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
585 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
586 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
587 " Syntax Highlighting: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
588 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
589 hi! link Special SrceryOrange |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
590 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
591 call s:HL('Comment', s:bright_black, s:none, s:italic) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
592 |
726 | 593 call s:HL('Todo', s:bright_white, g:srcery_bg, s:bold . s:italic) |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
594 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
595 call s:HL('Error', s:bright_white, s:red, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
596 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
597 " String constant: "this is a string" |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
598 call s:HL('String', s:bright_green) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
599 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
600 " Generic statement |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
601 hi! link Statement SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
602 " if, then, else, endif, swicth, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
603 hi! link Conditional SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
604 " for, do, while, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
605 hi! link Repeat SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
606 " case, default, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
607 hi! link Label SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
608 " try, catch, throw |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
609 hi! link Exception SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
610 " sizeof, "+", "*", etc. |
726 | 611 hi! link Operator SrceryBrightWhite |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
612 " Any other keyword |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
613 hi! link Keyword SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
614 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
615 " Variable name |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
616 hi! link Identifier SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
617 " Function name |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
618 hi! link Function SrceryYellow |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
619 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
620 " Generic preprocessor |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
621 hi! link PreProc SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
622 " Preprocessor #include |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
623 hi! link Include SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
624 " Preprocessor #define |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
625 hi! link Define SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
626 " Same as Define |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
627 hi! link Macro SrceryOrange |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
628 " Preprocessor #if, #else, #endif, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
629 hi! link PreCondit SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
630 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
631 " Generic constant |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
632 hi! link Constant SrceryBrightMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
633 " Character constant: 'c', '/n' |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
634 hi! link Character SrceryBrightMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
635 " Boolean constant: TRUE, false |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
636 hi! link Boolean SrceryBrightMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
637 " Number constant: 234, 0xff |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
638 hi! link Number SrceryBrightMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
639 " Floating point constant: 2.3e10 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
640 hi! link Float SrceryBrightMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
641 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
642 " Generic type |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
643 if g:srcery_italic_types == 1 && g:srcery_italic == 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
644 call s:HL('Type', s:bright_blue, s:none, s:italic) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
645 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
646 hi! link Type SrceryBrightBlue |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
647 end |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
648 " static, register, volatile, etc |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
649 hi! link StorageClass SrceryOrange |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
650 " struct, union, enum, etc. |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
651 hi! link Structure SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
652 " typedef |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
653 hi! link Typedef SrceryMagenta |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
654 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
655 if g:srcery_dim_lisp_paren == 1 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
656 hi! link Delimiter SrceryXgray6 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
657 else |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
658 hi! link Delimiter SrceryBrightBlack |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
659 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
660 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
661 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
662 " Completion Menu: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
663 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
664 if v:version >= 700 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
665 " Popup menu: normal item |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
666 call s:HL('Pmenu', s:bright_white, s:xgray2) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
667 " Popup menu: selected item |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
668 call s:HL('PmenuSel', s:bright_white, s:blue, s:bold) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
669 |
726 | 670 " Popup menu: scrollbar |
671 call s:HL('PmenuSbar', s:none, g:srcery_bg) | |
672 " Popup menu: scrollbar thumb | |
673 call s:HL('PmenuThumb', s:none, s:orange) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
674 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
675 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
676 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
677 " Diffs: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
678 |
726 | 679 call s:HL('DiffDelete', s:red, g:srcery_bg) |
680 call s:HL('DiffAdd', s:green, g:srcery_bg) | |
681 call s:HL('DiffChange', s:cyan, g:srcery_bg) | |
682 call s:HL('DiffText', s:yellow, g:srcery_bg) | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
683 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
684 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
685 " Spelling: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
686 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
687 if has('spell') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
688 " Not capitalised word, or compile warnings |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
689 call s:HL('SpellCap', s:green, s:none, s:bold . s:italic) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
690 " Not recognized word |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
691 call s:HL('SpellBad', s:none, s:none, s:undercurl, s:blue) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
692 " Wrong spelling for selected region |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
693 call s:HL('SpellLocal', s:none, s:none, s:undercurl, s:cyan) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
694 " Rare word |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
695 call s:HL('SpellRare', s:none, s:none, s:undercurl, s:magenta) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
696 endif |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
697 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
698 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
699 " Terminal: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
700 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
701 if g:srcery_hard_black_terminal_bg == 1 && has('terminal') |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
702 " Must set an explicit background as NONE won't work |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
703 " Therefore not useful with transparent background option |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
704 call s:HL('Terminal', s:bright_white, s:hard_black) |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
705 endif |
726 | 706 " }}} |
707 " Neovim LSP: {{{ | |
708 | |
709 if has('nvim') | |
710 " for backward compatibility with neovim v0.5.x | |
711 hi! link LspDiagnosticsDefaultError DiagnosticError | |
712 hi! link LspDiagnosticsDefaultWarning DiagnosticWarn | |
713 hi! link LspDiagnosticsDefaultInformation DiagnosticInfo | |
714 hi! link LspDiagnosticsDefaultHint DiagnosticHint | |
715 hi! link LspDiagnosticsUnderlineError DiagnosticUnderlineError | |
716 hi! link LspDiagnosticsUnderlineHint DiagnosticUnderlineHint | |
717 hi! link LspDiagnosticsUnderlineInformation DiagnosticUnderlineInfo | |
718 hi! link LspDiagnosticsUnderlineWarning DiagnosticUnderlineWarn | |
719 | |
720 " latest hl groups | |
721 hi! link DiagnosticError SrceryBrightRed | |
722 hi! link DiagnosticWarn SrceryBrightYellow | |
723 hi! link DiagnosticInfo SrceryBrightGreen | |
724 hi! link DiagnosticHint SrceryBrightCyan | |
725 call s:HL('DiagnosticUnderlineError', s:bright_red, s:none, s:undercurl) | |
726 call s:HL('DiagnosticUnderlineWarn', s:bright_yellow, s:none, s:undercurl) | |
727 call s:HL('DiagnosticUnderlineInfo', s:bright_green, s:none, s:undercurl) | |
728 call s:HL('DiagnosticUnderlineHint', s:bright_cyan, s:none, s:undercurl) | |
729 endif | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
730 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
731 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
732 |
739 | 733 " }}} |
734 | |
735 " Languages: {{{ | |
736 | |
737 " C: {{{ | |
738 | |
739 hi! link cOperator SrceryMagenta | |
740 hi! link cStructure SrceryYellow | |
741 | |
742 " }}} | |
743 " CoffeeScript: {{{ | |
744 | |
745 hi! link coffeeExtendedOp SrceryBrightWhite | |
746 hi! link coffeeSpecialOp SrceryBrightWhite | |
747 hi! link coffeeCurly SrceryYellow | |
748 hi! link coffeeParen SrceryBrightWhite | |
749 hi! link coffeeBracket SrceryYellow | |
750 | |
751 " }}} | |
752 " CSS: {{{ | |
753 | |
754 hi! link cssBraces SrceryBrightWhite | |
755 hi! link cssFunctionName SrceryYellow | |
756 hi! link cssIdentifier SrceryBlue | |
757 hi! link cssClassName SrceryBlue | |
758 hi! link cssClassNameDot SrceryBlue | |
759 hi! link cssColor SrceryBrightMagenta | |
760 hi! link cssSelectorOp SrceryBlue | |
761 hi! link cssSelectorOp2 SrceryBlue | |
762 hi! link cssImportant SrceryGreen | |
763 hi! link cssVendor SrceryBlue | |
764 hi! link cssMediaProp SrceryYellow | |
765 hi! link cssBorderProp SrceryYellow | |
766 hi! link cssAttrComma SrceryBrightWhite | |
767 | |
768 hi! link cssTextProp SrceryYellow | |
769 hi! link cssAnimationProp SrceryYellow | |
770 hi! link cssUIProp SrceryYellow | |
771 hi! link cssTransformProp SrceryYellow | |
772 hi! link cssTransitionProp SrceryYellow | |
773 hi! link cssPrintProp SrceryYellow | |
774 hi! link cssPositioningProp SrceryYellow | |
775 hi! link cssBoxProp SrceryYellow | |
776 hi! link cssFontDescriptorProp SrceryYellow | |
777 hi! link cssFlexibleBoxProp SrceryYellow | |
778 hi! link cssBorderOutlineProp SrceryYellow | |
779 hi! link cssBackgroundProp SrceryYellow | |
780 hi! link cssMarginProp SrceryYellow | |
781 hi! link cssListProp SrceryYellow | |
782 hi! link cssTableProp SrceryYellow | |
783 hi! link cssFontProp SrceryYellow | |
784 hi! link cssPaddingProp SrceryYellow | |
785 hi! link cssDimensionProp SrceryYellow | |
786 hi! link cssRenderProp SrceryYellow | |
787 hi! link cssColorProp SrceryYellow | |
788 hi! link cssGeneratedContentProp SrceryYellow | |
789 hi! link cssTagName SrceryBrightBlue | |
790 | |
791 " }}} | |
792 " Elixir: {{{ | |
793 | |
794 hi! link elixirDocString Comment | |
795 | |
796 hi! link elixirStringDelimiter SrceryGreen | |
797 hi! link elixirInterpolationDelimiter SrceryCyan | |
798 | |
799 " }}} | |
800 " Go: {{{ | |
801 | |
802 hi! link goDirective SrceryCyan | |
803 hi! link goConstants SrceryMagenta | |
804 hi! link goDeclaration SrceryRed | |
805 hi! link goDeclType SrceryBlue | |
806 hi! link goBuiltins SrceryYellow | |
807 | |
808 " }}} | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
809 " Diff: {{{ |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
810 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
811 hi! link diffAdded SrceryGreen |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
812 hi! link diffRemoved SrceryRed |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
813 hi! link diffChanged SrceryCyan |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
814 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
815 hi! link diffFile SrceryOrange |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
816 hi! link diffNewFile SrceryYellow |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
817 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
818 hi! link diffLine SrceryBlue |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
819 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
820 " }}} |
739 | 821 " Haskell: {{{ |
822 | |
823 " hi! link haskellType SrceryYellow | |
824 " hi! link haskellOperators SrceryYellow | |
825 " hi! link haskellConditional SrceryCyan | |
826 " hi! link haskellLet SrceryYellow | |
827 | |
828 hi! link haskellType SrceryBlue | |
829 hi! link haskellIdentifier SrceryBlue | |
830 hi! link haskellSeparator SrceryBlue | |
831 hi! link haskellDelimiter SrceryBrightWhite | |
832 hi! link haskellOperators SrceryBlue | |
833 | |
834 hi! link haskellBacktick SrceryYellow | |
835 hi! link haskellStatement SrceryYellow | |
836 hi! link haskellConditional SrceryYellow | |
837 | |
838 hi! link haskellLet SrceryCyan | |
839 hi! link haskellDefault SrceryCyan | |
840 hi! link haskellWhere SrceryCyan | |
841 hi! link haskellBottom SrceryCyan | |
842 hi! link haskellBlockKeywords SrceryCyan | |
843 hi! link haskellImportKeywords SrceryCyan | |
844 hi! link haskellDeclKeyword SrceryCyan | |
845 hi! link haskellDeriving SrceryCyan | |
846 hi! link haskellAssocType SrceryCyan | |
847 | |
848 hi! link haskellNumber SrceryMagenta | |
849 hi! link haskellPragma SrceryMagenta | |
850 | |
851 hi! link haskellString SrceryGreen | |
852 hi! link haskellChar SrceryGreen | |
853 | |
854 " }}} | |
855 " HTML: {{{ | |
856 | |
857 hi! link htmlTagName SrceryBlue | |
858 hi! link htmlTag SrceryBrightBlack | |
859 hi! link htmlEndTag SrceryBrightBlack | |
860 hi! link htmlArg SrceryYellow | |
861 | |
862 hi! link htmlScriptTag SrceryRed | |
863 hi! link htmlTagN SrceryBlue | |
864 hi! link htmlSpecialTagName SrceryBlue | |
865 | |
866 hi! link javaScript Normal | |
867 | |
868 call s:HL('htmlLink', s:bright_white, s:none, s:underline) | |
869 | |
870 hi! link htmlSpecialChar SrceryYellow | |
871 | |
872 call s:HL('htmlBold', s:bright_white, g:srcery_bg, s:bold) | |
873 call s:HL('htmlBoldUnderline', s:bright_white, g:srcery_bg, s:bold . s:underline) | |
874 call s:HL('htmlBoldItalic', s:bright_white, g:srcery_bg, s:bold . s:italic) | |
875 call s:HL('htmlBoldUnderlineItalic', s:bright_white, g:srcery_bg, s:bold . s:underline . s:italic) | |
876 call s:HL('htmlUnderline', s:bright_white, g:srcery_bg, s:underline) | |
877 call s:HL('htmlUnderlineItalic', s:bright_white, g:srcery_bg, s:underline . s:italic) | |
878 call s:HL('htmlItalic', s:bright_white, g:srcery_bg, s:italic) | |
879 | |
880 " }}} | |
881 " Java: {{{ | |
882 | |
883 hi! link javaAnnotation SrceryBlue | |
884 hi! link javaDocTags SrceryCyan | |
885 hi! link javaCommentTitle vimCommentTitle | |
886 hi! link javaParen SrceryBrightWhite | |
887 hi! link javaParen1 SrceryBrightWhite | |
888 hi! link javaParen2 SrceryBrightWhite | |
889 hi! link javaParen3 SrceryBrightWhite | |
890 hi! link javaParen4 SrceryBrightWhite | |
891 hi! link javaParen5 SrceryBrightWhite | |
892 hi! link javaOperator SrceryYellow | |
893 | |
894 hi! link javaVarArg SrceryGreen | |
895 | |
896 " }}} | |
897 " JavaScript: {{{ | |
898 | |
899 " Vanilla | |
900 " ------- | |
901 hi! link javaScriptMember SrceryBlue | |
902 hi! link javaScriptNull SrceryMagenta | |
903 hi! link javasCriptParens SrceryWhite | |
904 hi! link javaScriptBraces SrceryWhite | |
905 hi! link javaScriptReserved SrceryOrange | |
906 | |
907 " YAJS | |
908 " ---- | |
909 hi! link javascriptFuncArg Normal | |
910 hi! link javascriptDocComment SrceryGreen | |
911 hi! link javascriptArrayMethod Function | |
912 hi! link javascriptReflectMethod Function | |
913 hi! link javascriptStringMethod Function | |
914 hi! link javascriptObjectMethod Function | |
915 hi! link javascriptObjectStaticMethod Function | |
916 hi! link javascriptObjectLabel SrceryBlue | |
917 hi! link javascriptProp SrceryBlue | |
918 hi! link javascriptVariable SrceryBrightBlue | |
919 hi! link javascriptFuncKeyword SrceryBrightRed | |
920 hi! link javascriptFunctionMethod SrceryYellow | |
921 hi! link javascriptReturn SrceryBrightRed | |
922 hi! link javascriptEndColons SrceryWhite | |
923 | |
924 " pangloss/vim-javascript | |
925 " ----------------------- | |
926 hi! link jsFunction SrceryRed | |
927 hi! link jsImport SrceryRed | |
928 hi! link jsObjectSeparator SrceryWhite | |
929 hi! link jsParens SrceryWhite | |
930 hi! link jsFuncParens SrceryWhite | |
931 hi! link jsNoise SrceryWhite | |
932 hi! link jsEnvComment SrceryBrightBlack | |
933 hi! link jsOperator SrceryBrightCyan | |
934 | |
935 " }}} | |
936 " JSON: {{{ | |
937 | |
938 hi! link jsonKeyword SrceryGreen | |
939 hi! link jsonQuote SrceryGreen | |
940 hi! link jsonBraces SrceryBlue | |
941 hi! link jsonString SrceryBlue | |
942 | |
943 " }}} | |
944 " Lisp Dialects: {{{ | |
945 | |
946 if g:srcery_dim_lisp_paren == 1 | |
947 hi! link schemeParentheses SrceryXgray6 | |
948 hi! link clojureParen SrceryXgray6 | |
949 else | |
950 hi! link schemeParentheses SrceryWhite | |
951 hi! link clojureParen SrceryWhite | |
952 endif | |
953 | |
954 hi! link clojureKeyword SrceryBlue | |
955 hi! link clojureCond SrceryRed | |
956 hi! link clojureSpecial SrceryRed | |
957 hi! link clojureDefine SrceryRed | |
958 | |
959 hi! link clojureFunc SrceryYellow | |
960 hi! link clojureRepeat SrceryYellow | |
961 hi! link clojureCharacter SrceryCyan | |
962 hi! link clojureStringEscape SrceryCyan | |
963 hi! link clojureException SrceryRed | |
964 | |
965 hi! link clojureRegexp SrceryCyan | |
966 hi! link clojureRegexpEscape SrceryCyan | |
967 call s:HL('clojureRegexpCharClass', s:bright_white, s:none, s:bold) | |
968 hi! link clojureRegexpMod clojureRegexpCharClass | |
969 hi! link clojureRegexpQuantifier clojureRegexpCharClass | |
970 | |
971 hi! link clojureAnonArg SrceryYellow | |
972 hi! link clojureVariable SrceryBlue | |
973 hi! link clojureMacro SrceryOrangeBold | |
974 | |
975 hi! link clojureMeta SrceryYellow | |
976 hi! link clojureDeref SrceryYellow | |
977 hi! link clojureQuote SrceryYellow | |
978 hi! link clojureUnquote SrceryYellow | |
979 | |
980 " }}} | |
981 " Lua: {{{ | |
982 | |
983 hi! link luain srceryred | |
984 hi! link luafunction srcerycyan | |
985 hi! link luatable srceryyellow | |
986 | |
987 " }}} | |
988 " Make: {{{ | |
989 | |
990 hi! link makePreCondit SrceryRed | |
991 hi! link makeCommands SrceryBrightWhite | |
992 hi! link makeTarget SrceryYellow | |
993 | |
994 " }}} | |
995 " Markdown: {{{ | |
996 | |
997 call s:HL('markdownBold', s:bright_white, s:none, s:bold) | |
998 call s:HL('markdownItalic', s:bright_white, s:none, s:italic) | |
999 | |
1000 hi! link markdownH1 SrceryBrightBlueBold | |
1001 hi! link markdownH2 SrceryBrightBlueBold | |
1002 hi! link markdownH3 SrceryBrightYellowBold | |
1003 hi! link markdownH4 SrceryBrightYellowBold | |
1004 hi! link markdownH5 SrceryYellowBold | |
1005 hi! link markdownH6 SrceryYellowBold | |
1006 | |
1007 hi! link markdownCode SrceryWhite | |
1008 hi! link markdownCodeBlock SrceryWhite | |
1009 hi! link markdownCodeDelimiter SrceryWhite | |
1010 | |
1011 hi! link markdownBlockquote SrceryBrightBlack | |
1012 hi! link markdownListMarker SrceryBrightBlack | |
1013 hi! link markdownOrderedListMarker SrceryBrightBlack | |
1014 hi! link markdownRule SrceryBrightBlack | |
1015 hi! link markdownHeadingRule SrceryBrightBlack | |
1016 | |
1017 hi! link markdownUrlDelimiter SrceryBrightBlack | |
1018 hi! link markdownLinkDelimiter SrceryBrightBlack | |
1019 hi! link markdownLinkTextDelimiter SrceryBrightBlack | |
1020 | |
1021 hi! link markdownHeadingDelimiter SrceryBrightBlack | |
1022 hi! link markdownUrl SrceryBrightGreen | |
1023 hi! link markdownUrlTitleDelimiter SrceryGreen | |
1024 | |
1025 call s:HL('markdownLinkText', s:bright_white, s:none, s:underline) | |
1026 hi! link markdownIdDeclaration markdownLinkText | |
1027 | |
1028 " }}} | |
1029 " MoonScript: {{{ | |
1030 | |
1031 hi! link moonSpecialOp SrceryBrightWhite | |
1032 hi! link moonExtendedOp SrceryBrightWhite | |
1033 hi! link moonFunction SrceryBrightWhite | |
1034 hi! link moonObject SrceryYellow | |
1035 | |
1036 " }}} | |
1037 " ObjectiveC: {{{ | |
1038 | |
1039 hi! link objcTypeModifier SrceryRed | |
1040 hi! link objcDirective SrceryBlue | |
1041 | |
1042 " }}} | |
1043 " Python: {{{ | |
1044 | |
1045 hi! link pythonBuiltin SrceryYellow | |
1046 hi! link pythonBuiltinObj SrceryYellow | |
1047 hi! link pythonBuiltinFunc SrceryYellow | |
1048 hi! link pythonFunction SrceryCyan | |
1049 hi! link pythonDecorator SrceryRed | |
1050 hi! link pythonInclude SrceryBlue | |
1051 hi! link pythonImport SrceryBlue | |
1052 hi! link pythonRun SrceryBlue | |
1053 hi! link pythonCoding SrceryBlue | |
1054 hi! link pythonOperator SrceryRed | |
1055 hi! link pythonExceptions SrceryMagenta | |
1056 hi! link pythonBoolean SrceryMagenta | |
1057 hi! link pythonDot SrceryBrightWhite | |
1058 | |
1059 " }}} | |
1060 " Ruby: {{{ | |
1061 | |
1062 hi! link rubyStringDelimiter SrceryGreen | |
1063 hi! link rubyInterpolationDelimiter SrceryCyan | |
1064 hi! link rubyDefine Keyword | |
1065 | |
1066 " }}} | |
1067 " Rust: {{{ | |
1068 | |
1069 "https://github.com/rust-lang/rust.vim/blob/master/syntax/rust.vim | |
1070 hi! link rustCommentLineDoc SrceryGreen | |
1071 hi! link rustModPathSep SrceryBrightBlack | |
1072 | |
1073 " }}} | |
1074 " Scala: {{{ | |
1075 | |
1076 " NB: scala vim syntax file is kinda horrible | |
1077 hi! link scalaNameDefinition SrceryBlue | |
1078 hi! link scalaCaseFollowing SrceryBlue | |
1079 hi! link scalaCapitalWord SrceryBlue | |
1080 hi! link scalaTypeExtension SrceryBlue | |
1081 | |
1082 hi! link scalaKeyword SrceryRed | |
1083 hi! link scalaKeywordModifier SrceryRed | |
1084 | |
1085 hi! link scalaSpecial SrceryCyan | |
1086 hi! link scalaOperator SrceryBlue | |
1087 | |
1088 hi! link scalaTypeDeclaration SrceryYellow | |
1089 hi! link scalaTypeTypePostDeclaration SrceryYellow | |
1090 | |
1091 hi! link scalaInstanceDeclaration SrceryBlue | |
1092 hi! link scalaInterpolation SrceryCyan | |
1093 | |
1094 " }}} | |
1095 " SASS: {{{ | |
1096 | |
1097 hi! link sassClass SrceryBlue | |
1098 hi! link sassClassChar SrceryBlue | |
1099 hi! link sassVariable SrceryCyan | |
1100 hi! link sassIdChar SrceryBrightBlue | |
1101 hi! link sassId SrceryBrightBlue | |
1102 | |
1103 " }}} | |
1104 " Shellscript: {{{ | |
1105 | |
1106 call s:HL('shParenError', s:bright_white, s:bright_red) | |
1107 hi! link shCmdSubRegion SrceryWhite | |
1108 hi! link shArithRegion SrceryWhite | |
1109 hi! link shArithRegion SrceryWhite | |
1110 hi! link shQuote SrceryWhite | |
1111 hi! link shRedir SrceryMagenta | |
1112 hi! link shOption SrceryBrightYellow | |
1113 hi! link shCommandSub SrceryBrightRed | |
1114 | |
1115 " }}} | |
1116 " Vim: {{{ | |
1117 | |
1118 call s:HL('vimCommentTitle', s:bright_white, s:none, s:bold . s:italic) | |
1119 | |
1120 hi! link vimNotation SrceryYellow | |
1121 hi! link vimBracket SrceryYellow | |
1122 hi! link vimMapModKey SrceryYellow | |
1123 hi! link vimFuncSID SrceryBrightWhite | |
1124 hi! link vimSetSep SrceryBrightWhite | |
1125 hi! link vimSep SrceryBrightWhite | |
1126 hi! link vimContinue SrceryBrightWhite | |
1127 | |
1128 " }}} | |
1129 " XML: {{{ | |
1130 | |
1131 hi! link xmlTag SrceryBlue | |
1132 hi! link xmlEndTag SrceryBlue | |
1133 hi! link xmlTagName SrceryBlue | |
1134 hi! link xmlEqual SrceryBlue | |
1135 hi! link docbkKeyword SrceryCyanBold | |
1136 | |
1137 hi! link xmlDocTypeDecl SrceryBrightBlack | |
1138 hi! link xmlDocTypeKeyword SrceryMagenta | |
1139 hi! link xmlCdataStart SrceryBrightBlack | |
1140 hi! link xmlCdataCdata SrceryMagenta | |
1141 hi! link dtdFunction SrceryBrightBlack | |
1142 hi! link dtdTagName SrceryMagenta | |
1143 | |
1144 hi! link xmlAttrib SrceryCyan | |
1145 hi! link xmlProcessingDelim SrceryBrightBlack | |
1146 hi! link dtdParamEntityPunct SrceryBrightBlack | |
1147 hi! link dtdParamEntityDPunct SrceryBrightBlack | |
1148 hi! link xmlAttribPunct SrceryBrightBlack | |
1149 | |
1150 hi! link xmlEntity SrceryYellow | |
1151 hi! link xmlEntityPunct SrceryYellow | |
1152 | |
1153 " }}} | |
1154 | |
1155 " }}} | |
1156 | |
1157 " Plugins: {{{ | |
1158 | |
1159 " Sneak: {{{ | |
1160 | |
1161 hi! link Sneak Search | |
1162 call s:HL('SneakScope', s:none, s:hard_black) | |
1163 hi! link SneakLabel Search | |
1164 | |
1165 " }}} | |
1166 " Rainbow Parentheses: {{{ | |
1167 | |
1168 if !exists('g:rbpt_colorpairs') | |
1169 let g:rbpt_colorpairs = | |
1170 \ [ | |
1171 \ ['blue', '#2C78BF'], ['202', '#FF5F00'], | |
1172 \ ['red', '#EF2F27'], ['magenta', '#E02C6D'] | |
1173 \ ] | |
1174 endif | |
1175 | |
1176 let g:rainbow_guifgs = [ '#E02C6D', '#EF2F27', '#D75F00', '#2C78BF'] | |
1177 let g:rainbow_ctermfgs = [ 'magenta', 'red', '202', 'blue' ] | |
1178 | |
1179 if !exists('g:rainbow_conf') | |
1180 let g:rainbow_conf = {} | |
1181 endif | |
1182 if !has_key(g:rainbow_conf, 'guifgs') | |
1183 let g:rainbow_conf['guifgs'] = g:rainbow_guifgs | |
1184 endif | |
1185 if !has_key(g:rainbow_conf, 'ctermfgs') | |
1186 let g:rainbow_conf['ctermfgs'] = g:rainbow_ctermfgs | |
1187 endif | |
1188 | |
1189 let g:niji_dark_colours = g:rbpt_colorpairs | |
1190 let g:niji_light_colours = g:rbpt_colorpairs | |
1191 | |
1192 "}}} | |
1193 " GitGutter: {{{ | |
1194 | |
1195 hi! link GitGutterAdd SrceryGreen | |
1196 hi! link GitGutterChange SrceryYellow | |
1197 hi! link GitGutterDelete SrceryRed | |
1198 hi! link GitGutterChangeDelete SrceryYellow | |
1199 | |
1200 " }}} | |
1201 " Asynchronous Lint Engine: {{{ | |
1202 | |
1203 call s:HL('ALEError', s:none, s:none, s:undercurl, s:red) | |
1204 call s:HL('ALEWarning', s:none, s:none, s:undercurl, s:yellow) | |
1205 call s:HL('ALEInfo', s:none, s:none, s:undercurl, s:blue) | |
1206 | |
1207 hi! link ALEErrorSign SrceryRed | |
1208 hi! link ALEWarningSign SrceryYellow | |
1209 hi! link ALEInfoSign SrceryBlue | |
1210 | |
1211 " }}} | |
1212 | |
1213 " vim-indent-guides: {{{ | |
1214 call s:HL('IndentGuidesEven', s:none, s:xgray3) | |
1215 call s:HL('IndentGuidesOdd', s:none, s:xgray4) | |
1216 | |
1217 " }}} | |
1218 " vim-startify: {{{ | |
1219 | |
1220 hi! link StartifyNumber Statement | |
1221 hi! link StartifyFile Normal | |
1222 hi! link StartifyPath String | |
1223 hi! link StartifySlash Normal | |
1224 hi! link StartifyBracket Comment | |
1225 hi! link StartifyHeader Type | |
1226 hi! link StartifyFooter Normal | |
1227 hi! link StartifySpecial Comment | |
1228 hi! link StartifySection Identifier | |
1229 | |
1230 " }}} | |
1231 " fzf: {{{ | |
1232 | |
1233 call s:HL('fzf1', s:magenta, s:xgray2) | |
1234 call s:HL('fzf2', s:bright_green, s:xgray2) | |
1235 call s:HL('fzf3', s:bright_white, s:xgray2) | |
1236 | |
1237 "}}} | |
1238 | |
1239 " Netrw: {{{ | |
1240 | |
1241 hi! link netrwDir SrceryBlue | |
1242 hi! link netrwClassify SrceryCyan | |
1243 hi! link netrwLink SrceryBrightBlack | |
1244 hi! link netrwSymLink SrceryCyan | |
1245 hi! link netrwExe SrceryYellow | |
1246 hi! link netrwComment SrceryBrightBlack | |
1247 hi! link netrwList SrceryBrightBlue | |
1248 hi! link netrwTreeBar SrceryBrightBlack | |
1249 hi! link netrwHelpCmd SrceryCyan | |
1250 hi! link netrwVersion SrceryGreen | |
1251 hi! link netrwCmdSep SrceryBrightBlack | |
1252 | |
1253 "}}} | |
1254 " coc.nvim: {{{ | |
1255 | |
1256 hi! link CocErrorSign SrceryRed | |
1257 hi! link CocWarningSign SrceryBrightOrange | |
1258 hi! link CocInfoSign SrceryYellow | |
1259 hi! link CocHintSign SrceryBlue | |
1260 hi! link CocErrorFloat SrceryRed | |
1261 hi! link CocWarningFloat SrceryOrange | |
1262 hi! link CocInfoFloat SrceryYellow | |
1263 hi! link CocHintFloat SrceryBlue | |
1264 hi! link CocDiagnosticsError SrceryRed | |
1265 hi! link CocDiagnosticsWarning SrceryOrange | |
1266 hi! link CocDiagnosticsInfo SrceryYellow | |
1267 hi! link CocDiagnosticsHint SrceryBlue | |
1268 | |
1269 hi! link CocSelectedText SrceryRed | |
1270 hi! link CocCodeLens SrceryWhite | |
1271 | |
1272 call s:HL('CocErrorHighlight', s:none, s:none, s:undercurl, s:red) | |
1273 call s:HL('CocWarningHighlight', s:none, s:none, s:undercurl, s:bright_orange) | |
1274 call s:HL('CocInfoHighlight', s:none, s:none, s:undercurl, s:yellow) | |
1275 call s:HL('CocHintHighlight', s:none, s:none, s:undercurl, s:blue) | |
1276 | |
1277 " }}} | |
1278 " CtrlP: "{{{ | |
1279 | |
1280 hi! link CtrlPMatch SrceryMagenta | |
1281 hi! link CtrlPLinePre SrceryBrightGreen | |
1282 call s:HL('CtrlPMode1', s:bright_white, s:xgray3) | |
1283 call s:HL('CtrlPMode2', s:bright_white, s:xgray5) | |
1284 call s:HL('CtrlPStats', s:yellow, s:xgray2) | |
1285 | |
1286 " }}} | |
1287 " NERDTree: "{{{ | |
1288 | |
1289 hi! link NERDTreeDir SrceryBlue | |
1290 hi! link NERDTreeDirSlash SrceryCyan | |
1291 hi! link NERDTreeOpenable SrceryBlue | |
1292 hi! link NERDTreeClosable SrceryBlue | |
1293 hi! link NERDTreeFile SrceryWhite | |
1294 hi! link NERDTreeExecFile SrceryYellow | |
1295 hi! link NERDTreeUp SrceryOrange | |
1296 hi! link NERDTreeCWD SrceryGreen | |
1297 hi! link NERDTreeHelp SrceryCyan | |
1298 hi! link NERDTreeFlags SrceryCyan | |
1299 hi! link NERDTreeLinkFile SrceryBrightBlack | |
1300 hi! link NERDTreeLinkTarget SrceryBrightBlack | |
1301 | |
1302 " }}} | |
1303 " Telescope: "{{{ | |
1304 | |
1305 call s:HL('TelescopeNormal', s:white, s:none) | |
1306 call s:HL('TelescopeSelection', s:green, s:none, s:bold) | |
1307 call s:HL('TelescopeMatching', s:magenta) | |
1308 call s:HL('TelescopeSelectionCaret', s:magenta) | |
1309 call s:HL('TelescopePromptPrefix', s:bright_yellow) | |
1310 | |
1311 " }}} | |
1312 " nvim-cmp: "{{{ | |
1313 | |
1314 hi! link CmpItemAbbr Pmenu | |
1315 hi! link CmpItemAbbrDeprecated Comment | |
1316 hi! link CmpItemAbbrMatch Pmenu | |
1317 hi! link CmpItemAbbrMatchFuzzy Pmenu | |
1318 hi! link CmpItemKind Special | |
1319 hi! link CmpItemMenu Pmenu | |
1320 | |
1321 " }}} | |
1322 " nvim: {{{ | |
1323 | |
1324 if has('nvim') | |
1325 " nvim-treesitter: {{{ | |
1326 | |
1327 " This is deprecated in new nvim releases | |
1328 call s:HL('TSStrong', s:none, s:none, s:bold) | |
1329 call s:HL('TSEmphasis', s:none, s:none, s:bold) | |
1330 call s:HL('TSUnderline', s:none, s:none, s:underline) | |
1331 | |
1332 highlight! link TSWarning SrceryOrangeBold | |
1333 highlight! link TSDanger SrceryRedBold | |
1334 highlight! link TSConstBuiltin SrceryCyan | |
1335 highlight! link TSField SrceryGreen | |
1336 highlight! link TSFuncBuiltin SrceryYellow | |
1337 highlight! link TSFuncMacro SrceryOrange | |
1338 highlight! link TSFunction SrceryYellow | |
1339 call s:HL('TSNamespace', s:white, s:none, s:italic) | |
1340 call s:HL('TSParameter', s:cyan, s:none, s:italic) | |
1341 highlight! link TSProperty SrceryBrightBlue | |
1342 highlight! link TSSymbol SrceryBlue | |
1343 highlight! link TSTag SrceryBlue | |
1344 highlight! link TSTagAttribute SrceryYellow | |
1345 highlight! link TSVariableBuiltin SrceryCyan | |
1346 highlight! link TSType SrceryWhite | |
1347 highlight! link TSDelimiter SrceryWhite | |
1348 highlight! link TSURI SrceryGreen | |
1349 highlight! link TSVariable SrceryBrightWhite | |
1350 | |
1351 if has('nvim-0.8') | |
1352 highlight! link @text.strong TSStrong | |
1353 highlight! link @text.emphasis TSEmphasis | |
1354 highlight! link @text.underline TSUnderline | |
1355 highlight! link @text.warning TSWarning | |
1356 highlight! link @text.danger TSDanger | |
1357 highlight! link @constant.builtin TSConstBuiltin | |
1358 highlight! link @field TSField | |
1359 highlight! link @function.builtin TSFuncBuiltin | |
1360 highlight! link @function.macro TSFuncMacro | |
1361 highlight! link @function TSFunction | |
1362 highlight! link @namespace TSNamespace | |
1363 highlight! link @parameter TSParameter | |
1364 highlight! link @property TSProperty | |
1365 highlight! link @symbol TSSymbol | |
1366 highlight! link @tag TSTag | |
1367 highlight! link @tag.attribute TSTagAttribute | |
1368 highlight! link @variable.builtin TSVariableBuiltin | |
1369 highlight! link @type TSType | |
1370 highlight! link @delimiter TSDelimiter | |
1371 highlight! link @text.uri TSURI | |
1372 highlight! link @variable TSVariable | |
1373 | |
1374 call s:HL('@markup.strong', s:none, s:none, s:bold) | |
1375 call s:HL('@markup.italic', s:none, s:none, s:italic) | |
1376 call s:HL('@markup.underline', s:none, s:none, s:underline) | |
1377 call s:HL('@markup.strikethrough', s:none, s:none, s:strikethrough) | |
1378 | |
1379 endif | |
1380 | |
1381 " }}} | |
1382 endif | |
1383 | |
1384 " }}} | |
1385 | |
1386 " GitCommit: "{{{ | |
1387 | |
1388 hi! link gitcommitSelectedFile SrceryGreen | |
1389 hi! link gitcommitDiscardedFile SrceryRed | |
1390 | |
1391 " }}} | |
1392 " Better whitespace: {{{ | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
1393 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
1394 call s:HL('ExtraWhitespace', s:none, s:red) |
739 | 1395 |
1396 " }}} | |
1397 | |
704
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
1398 " }}} |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
1399 |
1e0f578f6752
Update vendor and add support for vim packs
nanaya <me@nanaya.net>
parents:
diff
changeset
|
1400 " vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker : |