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