Mercurial > ec-dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
738:687d9ee4a5c9 | 739:2cf87b7ca09a |
---|---|
18 | 18 |
19 if !has('gui_running') && &t_Co != 256 | 19 if !has('gui_running') && &t_Co != 256 |
20 finish | 20 finish |
21 endif | 21 endif |
22 | 22 |
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 | |
23 " Palette {{{ | 234 " Palette {{{ |
24 | 235 |
25 let s:none = g:srcery#palette.none | 236 let s:none = ['NONE', 'NONE'] |
26 | 237 |
27 " 16 base colors | 238 " 16 base colors |
28 let s:black = g:srcery#palette.black | 239 let s:black = [g:srcery_black, 0] |
29 let s:red = g:srcery#palette.red | 240 let s:red = [g:srcery_red, 1] |
30 let s:green = g:srcery#palette.green | 241 let s:green = [g:srcery_green, 2] |
31 let s:yellow = g:srcery#palette.yellow | 242 let s:yellow = [g:srcery_yellow, 3] |
32 let s:blue = g:srcery#palette.blue | 243 let s:blue = [g:srcery_blue, 4] |
33 let s:magenta = g:srcery#palette.magenta | 244 let s:magenta = [g:srcery_magenta, 5] |
34 let s:cyan = g:srcery#palette.cyan | 245 let s:cyan = [g:srcery_cyan, 6] |
35 let s:white = g:srcery#palette.white | 246 let s:white = [g:srcery_white, 7] |
36 let s:bright_black = g:srcery#palette.bright_black | 247 let s:bright_black = [g:srcery_bright_black, 8] |
37 let s:bright_red = g:srcery#palette.bright_red | 248 let s:bright_red = [g:srcery_bright_red, 9] |
38 let s:bright_green = g:srcery#palette.bright_green | 249 let s:bright_green = [g:srcery_bright_green, 10] |
39 let s:bright_yellow = g:srcery#palette.bright_yellow | 250 let s:bright_yellow = [g:srcery_bright_yellow, 11] |
40 let s:bright_blue = g:srcery#palette.bright_blue | 251 let s:bright_blue = [g:srcery_bright_blue, 12] |
41 let s:bright_magenta = g:srcery#palette.bright_magenta | 252 let s:bright_magenta = [g:srcery_bright_magenta, 13] |
42 let s:bright_cyan = g:srcery#palette.bright_cyan | 253 let s:bright_cyan = [g:srcery_bright_cyan, 14] |
43 let s:bright_white = g:srcery#palette.bright_white | 254 let s:bright_white = [g:srcery_bright_white, 15] |
44 | 255 |
45 " xterm colors | 256 " xterm colors |
46 let s:orange = g:srcery#palette.orange | 257 let s:orange = [g:srcery_orange, g:srcery_orange_cterm] |
47 let s:bright_orange = g:srcery#palette.bright_orange | 258 let s:bright_orange = [g:srcery_bright_orange, g:srcery_bright_orange_cterm] |
48 let s:hard_black = g:srcery#palette.hard_black | 259 let s:hard_black = [g:srcery_hard_black, g:srcery_hard_black_cterm] |
49 let s:xgray1 = g:srcery#palette.xgray1 | 260 let s:xgray1 = [g:srcery_xgray1, g:srcery_xgray1_cterm] |
50 let s:xgray2 = g:srcery#palette.xgray2 | 261 let s:xgray2 = [g:srcery_xgray2, g:srcery_xgray2_cterm] |
51 let s:xgray3 = g:srcery#palette.xgray3 | 262 let s:xgray3 = [g:srcery_xgray3, g:srcery_xgray3_cterm] |
52 let s:xgray4 = g:srcery#palette.xgray4 | 263 let s:xgray4 = [g:srcery_xgray4, g:srcery_xgray4_cterm] |
53 let s:xgray5 = g:srcery#palette.xgray5 | 264 let s:xgray5 = [g:srcery_xgray5, g:srcery_xgray5_cterm] |
54 let s:xgray6 = g:srcery#palette.xgray6 | 265 let s:xgray6 = [g:srcery_xgray6, g:srcery_xgray6_cterm] |
55 | 266 |
56 "}}} | 267 "}}} |
268 | |
57 " Setup Emphasis: {{{ | 269 " Setup Emphasis: {{{ |
58 | 270 |
59 let s:bold = g:srcery#palette.bold | 271 let s:bold = 'bold,' |
60 let s:italic = g:srcery#palette.italic | 272 if g:srcery_bold == 0 |
61 let s:underline = g:srcery#palette.underline | 273 let s:bold = '' |
62 let s:undercurl = g:srcery#palette.undercurl | 274 endif |
63 let s:inverse = g:srcery#palette.inverse | 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 | |
64 | 300 |
65 " }}} | 301 " }}} |
66 | 302 |
67 " Highlighting Function: {{{ | 303 " Highlighting Function: {{{ |
68 | 304 |
111 | 347 |
112 execute join(l:histring, ' ') | 348 execute join(l:histring, ' ') |
113 endfunction | 349 endfunction |
114 | 350 |
115 "}}} | 351 "}}} |
352 | |
116 " Srcery Hi Groups: {{{ | 353 " Srcery Hi Groups: {{{ |
117 | 354 |
118 " memoize common hi groups | 355 " memoize common hi groups |
119 call s:HL('SrceryRed', s:red) | 356 call s:HL('SrceryRed', s:red) |
120 call s:HL('SrceryGreen', s:green) | 357 call s:HL('SrceryGreen', s:green) |
164 call s:HL('SrceryXgray5', s:xgray5) | 401 call s:HL('SrceryXgray5', s:xgray5) |
165 call s:HL('SrceryXgray6', s:xgray6) | 402 call s:HL('SrceryXgray6', s:xgray6) |
166 | 403 |
167 " }}} | 404 " }}} |
168 | 405 |
169 " Vanilla colorscheme --------------------------------------------------------- | 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 | |
170 " General UI: {{{ | 470 " General UI: {{{ |
171 | 471 |
172 " Normal text | 472 " Normal text |
173 " | 473 " |
174 call s:HL('Normal', s:bright_white, g:srcery_bg) | 474 call s:HL('Normal', s:bright_white, g:srcery_bg) |
428 call s:HL('DiagnosticUnderlineHint', s:bright_cyan, s:none, s:undercurl) | 728 call s:HL('DiagnosticUnderlineHint', s:bright_cyan, s:none, s:undercurl) |
429 endif | 729 endif |
430 | 730 |
431 " }}} | 731 " }}} |
432 | 732 |
433 " Filetype specific ----------------------------------------------------------- | 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 " }}} | |
434 " Diff: {{{ | 809 " Diff: {{{ |
435 | 810 |
436 hi! link diffAdded SrceryGreen | 811 hi! link diffAdded SrceryGreen |
437 hi! link diffRemoved SrceryRed | 812 hi! link diffRemoved SrceryRed |
438 hi! link diffChanged SrceryCyan | 813 hi! link diffChanged SrceryCyan |
441 hi! link diffNewFile SrceryYellow | 816 hi! link diffNewFile SrceryYellow |
442 | 817 |
443 hi! link diffLine SrceryBlue | 818 hi! link diffLine SrceryBlue |
444 | 819 |
445 " }}} | 820 " }}} |
446 " Misc: {{{ | 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: {{{ | |
447 | 1393 |
448 call s:HL('ExtraWhitespace', s:none, s:red) | 1394 call s:HL('ExtraWhitespace', s:none, s:red) |
1395 | |
1396 " }}} | |
1397 | |
449 " }}} | 1398 " }}} |
450 | 1399 |
451 " vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker : | 1400 " vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker : |