forked from samiuljoy/vim-dark-colorschemes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruvbox-material.vim
executable file
·1949 lines (1941 loc) · 83.3 KB
/
gruvbox-material.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
" -----------------------------------------------------------------------------
" Name: Gruvbox Material
" Description: Gruvbox with Material Palette
" Author: sainnhe <[email protected]>
" Website: https://github.com/sainnhe/gruvbox-material
" License: MIT
" -----------------------------------------------------------------------------
" Initialization: {{{
highlight clear
if exists('syntax_on')
syntax reset
endif
let g:colors_name = 'gruvbox-material'
if !(has('termguicolors') && &termguicolors) && !has('gui_running') && &t_Co != 256
finish
endif
let s:configuration = gruvbox_material#get_configuration()
let s:palette = gruvbox_material#get_palette(s:configuration.background, s:configuration.palette)
let s:path = expand('<sfile>:p') " the path of this script
let s:last_modified = 'Mon 29 Jun 2020 10:07:19 AM UTC'
let g:gruvbox_material_loaded_file_types = []
" }}}
" Common Highlight Groups: {{{
" UI: {{{
if s:configuration.transparent_background
call gruvbox_material#highlight('Normal', s:palette.fg0, s:palette.none)
call gruvbox_material#highlight('Terminal', s:palette.fg0, s:palette.none)
call gruvbox_material#highlight('EndOfBuffer', s:palette.bg0, s:palette.none)
call gruvbox_material#highlight('FoldColumn', s:palette.grey0, s:palette.none)
call gruvbox_material#highlight('Folded', s:palette.grey1, s:palette.none)
call gruvbox_material#highlight('SignColumn', s:palette.fg0, s:palette.none)
call gruvbox_material#highlight('ToolbarLine', s:palette.fg0, s:palette.none)
else
call gruvbox_material#highlight('Normal', s:palette.fg0, s:palette.bg0)
call gruvbox_material#highlight('Terminal', s:palette.fg0, s:palette.bg0)
call gruvbox_material#highlight('EndOfBuffer', s:palette.bg0, s:palette.bg0)
call gruvbox_material#highlight('Folded', s:palette.grey1, s:palette.bg2)
call gruvbox_material#highlight('ToolbarLine', s:palette.fg1, s:palette.bg3)
if s:configuration.sign_column_background ==# 'default'
call gruvbox_material#highlight('SignColumn', s:palette.fg0, s:palette.bg2)
call gruvbox_material#highlight('FoldColumn', s:palette.grey0, s:palette.bg2)
else
call gruvbox_material#highlight('SignColumn', s:palette.fg0, s:palette.none)
call gruvbox_material#highlight('FoldColumn', s:palette.grey0, s:palette.none)
endif
endif
call gruvbox_material#highlight('IncSearch', s:palette.bg0, s:palette.bg_red)
call gruvbox_material#highlight('Search', s:palette.bg0, s:palette.bg_green)
call gruvbox_material#highlight('ColorColumn', s:palette.none, s:palette.bg2)
call gruvbox_material#highlight('Conceal', s:palette.grey0, s:palette.none)
if s:configuration.cursor ==# 'auto'
call gruvbox_material#highlight('Cursor', s:palette.none, s:palette.none, 'reverse')
else
call gruvbox_material#highlight('Cursor', s:palette.bg0, s:palette[s:configuration.cursor])
endif
highlight! link vCursor Cursor
highlight! link iCursor Cursor
highlight! link lCursor Cursor
highlight! link CursorIM Cursor
call gruvbox_material#highlight('CursorColumn', s:palette.none, s:palette.bg1)
call gruvbox_material#highlight('CursorLine', s:palette.none, s:palette.bg1)
call gruvbox_material#highlight('LineNr', s:palette.grey0, s:palette.none)
if (&relativenumber == 1 && &cursorline == 0) || s:configuration.sign_column_background !=# 'default'
call gruvbox_material#highlight('CursorLineNr', s:palette.grey2, s:palette.none)
else
call gruvbox_material#highlight('CursorLineNr', s:palette.grey2, s:palette.bg1)
endif
call gruvbox_material#highlight('DiffAdd', s:palette.none, s:palette.bg_diff_green)
call gruvbox_material#highlight('DiffChange', s:palette.none, s:palette.bg_diff_blue)
call gruvbox_material#highlight('DiffDelete', s:palette.none, s:palette.bg_diff_red)
call gruvbox_material#highlight('DiffText', s:palette.bg0, s:palette.fg0)
call gruvbox_material#highlight('Directory', s:palette.green, s:palette.none)
call gruvbox_material#highlight('ErrorMsg', s:palette.red, s:palette.none, 'bold,underline')
call gruvbox_material#highlight('WarningMsg', s:palette.yellow, s:palette.none, 'bold')
call gruvbox_material#highlight('ModeMsg', s:palette.fg0, s:palette.none, 'bold')
call gruvbox_material#highlight('MoreMsg', s:palette.yellow, s:palette.none, 'bold')
call gruvbox_material#highlight('MatchParen', s:palette.none, s:palette.bg4)
call gruvbox_material#highlight('NonText', s:palette.bg5, s:palette.none)
call gruvbox_material#highlight('Whitespace', s:palette.bg5, s:palette.none)
call gruvbox_material#highlight('SpecialKey', s:palette.bg5, s:palette.none)
call gruvbox_material#highlight('Pmenu', s:palette.fg1, s:palette.bg3)
call gruvbox_material#highlight('PmenuSbar', s:palette.none, s:palette.bg3)
if s:configuration.menu_selection_background ==# 'grey'
call gruvbox_material#highlight('PmenuSel', s:palette.bg3, s:palette.grey2)
elseif s:configuration.menu_selection_background ==# 'green'
call gruvbox_material#highlight('PmenuSel', s:palette.bg3, s:palette.bg_green)
elseif s:configuration.menu_selection_background ==# 'red'
call gruvbox_material#highlight('PmenuSel', s:palette.bg3, s:palette.bg_red)
else
call gruvbox_material#highlight('PmenuSel', s:palette.bg3, s:palette[s:configuration.menu_selection_background])
end
highlight! link WildMenu PmenuSel
call gruvbox_material#highlight('PmenuThumb', s:palette.none, s:palette.grey0)
call gruvbox_material#highlight('Question', s:palette.yellow, s:palette.none)
call gruvbox_material#highlight('SpellBad', s:palette.red, s:palette.none, 'undercurl', s:palette.red)
call gruvbox_material#highlight('SpellCap', s:palette.blue, s:palette.none, 'undercurl', s:palette.blue)
call gruvbox_material#highlight('SpellLocal', s:palette.aqua, s:palette.none, 'undercurl', s:palette.aqua)
call gruvbox_material#highlight('SpellRare', s:palette.purple, s:palette.none, 'undercurl', s:palette.purple)
if s:configuration.statusline_style ==# 'original'
call gruvbox_material#highlight('StatusLine', s:palette.grey2, s:palette.bg_statusline3)
call gruvbox_material#highlight('StatusLineTerm', s:palette.grey2, s:palette.bg_statusline3)
call gruvbox_material#highlight('StatusLineNC', s:palette.grey1, s:palette.bg_statusline2)
call gruvbox_material#highlight('StatusLineTermNC', s:palette.grey1, s:palette.bg_statusline2)
call gruvbox_material#highlight('TabLine', s:palette.grey2, s:palette.bg_statusline3)
call gruvbox_material#highlight('TabLineFill', s:palette.grey1, s:palette.bg0)
call gruvbox_material#highlight('TabLineSel', s:palette.bg0, s:palette.grey2)
else
call gruvbox_material#highlight('StatusLine', s:palette.fg1, s:palette.bg_statusline2)
call gruvbox_material#highlight('StatusLineTerm', s:palette.fg1, s:palette.bg_statusline2)
call gruvbox_material#highlight('StatusLineNC', s:palette.grey2, s:palette.bg_statusline2)
call gruvbox_material#highlight('StatusLineTermNC', s:palette.grey2, s:palette.bg_statusline2)
call gruvbox_material#highlight('TabLine', s:palette.fg1, s:palette.bg_statusline3)
call gruvbox_material#highlight('TabLineFill', s:palette.fg0, s:palette.bg_statusline1)
call gruvbox_material#highlight('TabLineSel', s:palette.bg0, s:palette.grey2)
endif
call gruvbox_material#highlight('VertSplit', s:palette.bg5, s:palette.none)
if s:configuration.visual ==# 'grey background'
call gruvbox_material#highlight('Visual', s:palette.none, s:palette.bg3)
call gruvbox_material#highlight('VisualNOS', s:palette.none, s:palette.bg3)
elseif s:configuration.visual ==# 'green background'
call gruvbox_material#highlight('Visual', s:palette.none, s:palette.bg_visual_green)
call gruvbox_material#highlight('VisualNOS', s:palette.none, s:palette.bg_visual_green)
elseif s:configuration.visual ==# 'blue background'
call gruvbox_material#highlight('Visual', s:palette.none, s:palette.bg_visual_blue)
call gruvbox_material#highlight('VisualNOS', s:palette.none, s:palette.bg_visual_blue)
elseif s:configuration.visual ==# 'red background'
call gruvbox_material#highlight('Visual', s:palette.none, s:palette.bg_visual_red)
call gruvbox_material#highlight('VisualNOS', s:palette.none, s:palette.bg_visual_red)
elseif s:configuration.visual ==# 'reverse'
call gruvbox_material#highlight('Visual', s:palette.none, s:palette.none, 'reverse')
call gruvbox_material#highlight('VisualNOS', s:palette.none, s:palette.none, 'reverse')
endif
call gruvbox_material#highlight('QuickFixLine', s:palette.purple, s:palette.none, 'bold')
call gruvbox_material#highlight('Debug', s:palette.orange, s:palette.none)
call gruvbox_material#highlight('debugPC', s:palette.bg0, s:palette.green)
call gruvbox_material#highlight('debugBreakpoint', s:palette.bg0, s:palette.red)
call gruvbox_material#highlight('ToolbarButton', s:palette.bg0, s:palette.grey2)
if has('nvim')
call gruvbox_material#highlight('LspDiagnosticsFloatingError', s:palette.red, s:palette.bg3)
call gruvbox_material#highlight('LspDiagnosticsFloatingWarning', s:palette.yellow, s:palette.bg3)
call gruvbox_material#highlight('LspDiagnosticsFloatingInformation', s:palette.blue, s:palette.bg3)
call gruvbox_material#highlight('LspDiagnosticsFloatingHint', s:palette.aqua, s:palette.bg3)
highlight! link LspDiagnosticsDefaultError ErrorLine
highlight! link LspDiagnosticsDefaultWarning WarningLine
highlight! link LspDiagnosticsDefaultInformation InfoLine
highlight! link LspDiagnosticsDefaultHint HintLine
highlight! link LspDiagnosticsVirtualTextError Grey
highlight! link LspDiagnosticsVirtualTextWarning Grey
highlight! link LspDiagnosticsVirtualTextInformation Grey
highlight! link LspDiagnosticsVirtualTextHint Grey
highlight! link LspDiagnosticsUnderlineError ErrorLine
highlight! link LspDiagnosticsUnderlineWarning WarningLine
highlight! link LspDiagnosticsUnderlineInformation InfoLine
highlight! link LspDiagnosticsUnderlineHint HintLine
highlight! link LspDiagnosticsSignError RedSign
highlight! link LspDiagnosticsSignWarning YellowSign
highlight! link LspDiagnosticsSignInformation BlueSign
highlight! link LspDiagnosticsSignHint AquaSign
call gruvbox_material#highlight('Substitute', s:palette.bg0, s:palette.yellow)
highlight! link TermCursor Cursor
highlight! link healthError Red
highlight! link healthSuccess Green
highlight! link healthWarning Yellow
highlight! link LspReferenceText CurrentWord
highlight! link LspReferenceRead CurrentWord
highlight! link LspReferenceWrite CurrentWord
endif
" }}}
" Syntax: {{{
call gruvbox_material#highlight('Boolean', s:palette.purple, s:palette.none)
call gruvbox_material#highlight('Number', s:palette.purple, s:palette.none)
call gruvbox_material#highlight('Float', s:palette.purple, s:palette.none)
if s:configuration.enable_italic
call gruvbox_material#highlight('PreProc', s:palette.purple, s:palette.none, 'italic')
call gruvbox_material#highlight('PreCondit', s:palette.purple, s:palette.none, 'italic')
call gruvbox_material#highlight('Include', s:palette.purple, s:palette.none, 'italic')
call gruvbox_material#highlight('Define', s:palette.purple, s:palette.none, 'italic')
call gruvbox_material#highlight('Conditional', s:palette.red, s:palette.none, 'italic')
call gruvbox_material#highlight('Repeat', s:palette.red, s:palette.none, 'italic')
call gruvbox_material#highlight('Keyword', s:palette.red, s:palette.none, 'italic')
call gruvbox_material#highlight('Typedef', s:palette.red, s:palette.none, 'italic')
call gruvbox_material#highlight('Exception', s:palette.red, s:palette.none, 'italic')
call gruvbox_material#highlight('Statement', s:palette.red, s:palette.none, 'italic')
else
call gruvbox_material#highlight('PreProc', s:palette.purple, s:palette.none)
call gruvbox_material#highlight('PreCondit', s:palette.purple, s:palette.none)
call gruvbox_material#highlight('Include', s:palette.purple, s:palette.none)
call gruvbox_material#highlight('Define', s:palette.purple, s:palette.none)
call gruvbox_material#highlight('Conditional', s:palette.red, s:palette.none)
call gruvbox_material#highlight('Repeat', s:palette.red, s:palette.none)
call gruvbox_material#highlight('Keyword', s:palette.red, s:palette.none)
call gruvbox_material#highlight('Typedef', s:palette.red, s:palette.none)
call gruvbox_material#highlight('Exception', s:palette.red, s:palette.none)
call gruvbox_material#highlight('Statement', s:palette.red, s:palette.none)
endif
call gruvbox_material#highlight('Error', s:palette.red, s:palette.none)
call gruvbox_material#highlight('StorageClass', s:palette.orange, s:palette.none)
call gruvbox_material#highlight('Tag', s:palette.orange, s:palette.none)
call gruvbox_material#highlight('Label', s:palette.orange, s:palette.none)
call gruvbox_material#highlight('Structure', s:palette.orange, s:palette.none)
call gruvbox_material#highlight('Operator', s:palette.orange, s:palette.none)
call gruvbox_material#highlight('Title', s:palette.orange, s:palette.none, 'bold')
call gruvbox_material#highlight('Special', s:palette.yellow, s:palette.none)
call gruvbox_material#highlight('SpecialChar', s:palette.yellow, s:palette.none)
call gruvbox_material#highlight('Type', s:palette.yellow, s:palette.none)
if s:configuration.enable_bold
call gruvbox_material#highlight('Function', s:palette.green, s:palette.none, 'bold')
else
call gruvbox_material#highlight('Function', s:palette.green, s:palette.none)
endif
call gruvbox_material#highlight('String', s:palette.green, s:palette.none)
call gruvbox_material#highlight('Character', s:palette.green, s:palette.none)
call gruvbox_material#highlight('Constant', s:palette.aqua, s:palette.none)
call gruvbox_material#highlight('Macro', s:palette.aqua, s:palette.none)
call gruvbox_material#highlight('Identifier', s:palette.blue, s:palette.none)
if s:configuration.disable_italic_comment
call gruvbox_material#highlight('Comment', s:palette.grey1, s:palette.none)
call gruvbox_material#highlight('SpecialComment', s:palette.grey1, s:palette.none)
call gruvbox_material#highlight('Todo', s:palette.purple, s:palette.none)
else
call gruvbox_material#highlight('Comment', s:palette.grey1, s:palette.none, 'italic')
call gruvbox_material#highlight('SpecialComment', s:palette.grey1, s:palette.none, 'italic')
call gruvbox_material#highlight('Todo', s:palette.purple, s:palette.none, 'italic')
endif
call gruvbox_material#highlight('Delimiter', s:palette.fg0, s:palette.none)
call gruvbox_material#highlight('Ignore', s:palette.grey1, s:palette.none)
call gruvbox_material#highlight('Underlined', s:palette.none, s:palette.none, 'underline')
" }}}
" Predefined Highlight Groups: {{{
call gruvbox_material#highlight('Fg', s:palette.fg0, s:palette.none)
call gruvbox_material#highlight('Grey', s:palette.grey1, s:palette.none)
call gruvbox_material#highlight('Red', s:palette.red, s:palette.none)
call gruvbox_material#highlight('Orange', s:palette.orange, s:palette.none)
call gruvbox_material#highlight('Yellow', s:palette.yellow, s:palette.none)
call gruvbox_material#highlight('Green', s:palette.green, s:palette.none)
call gruvbox_material#highlight('Aqua', s:palette.aqua, s:palette.none)
call gruvbox_material#highlight('Blue', s:palette.blue, s:palette.none)
call gruvbox_material#highlight('Purple', s:palette.purple, s:palette.none)
if s:configuration.enable_italic
call gruvbox_material#highlight('RedItalic', s:palette.red, s:palette.none, 'italic')
call gruvbox_material#highlight('OrangeItalic', s:palette.orange, s:palette.none, 'italic')
call gruvbox_material#highlight('YellowItalic', s:palette.yellow, s:palette.none, 'italic')
call gruvbox_material#highlight('GreenItalic', s:palette.green, s:palette.none, 'italic')
call gruvbox_material#highlight('AquaItalic', s:palette.aqua, s:palette.none, 'italic')
call gruvbox_material#highlight('BlueItalic', s:palette.blue, s:palette.none, 'italic')
call gruvbox_material#highlight('PurpleItalic', s:palette.purple, s:palette.none, 'italic')
else
call gruvbox_material#highlight('RedItalic', s:palette.red, s:palette.none)
call gruvbox_material#highlight('OrangeItalic', s:palette.orange, s:palette.none)
call gruvbox_material#highlight('YellowItalic', s:palette.yellow, s:palette.none)
call gruvbox_material#highlight('GreenItalic', s:palette.green, s:palette.none)
call gruvbox_material#highlight('AquaItalic', s:palette.aqua, s:palette.none)
call gruvbox_material#highlight('BlueItalic', s:palette.blue, s:palette.none)
call gruvbox_material#highlight('PurpleItalic', s:palette.purple, s:palette.none)
endif
if s:configuration.enable_bold
call gruvbox_material#highlight('RedBold', s:palette.red, s:palette.none, 'bold')
call gruvbox_material#highlight('OrangeBold', s:palette.orange, s:palette.none, 'bold')
call gruvbox_material#highlight('YellowBold', s:palette.yellow, s:palette.none, 'bold')
call gruvbox_material#highlight('GreenBold', s:palette.green, s:palette.none, 'bold')
call gruvbox_material#highlight('AquaBold', s:palette.aqua, s:palette.none, 'bold')
call gruvbox_material#highlight('BlueBold', s:palette.blue, s:palette.none, 'bold')
call gruvbox_material#highlight('PurpleBold', s:palette.purple, s:palette.none, 'bold')
else
call gruvbox_material#highlight('RedBold', s:palette.red, s:palette.none)
call gruvbox_material#highlight('OrangeBold', s:palette.orange, s:palette.none)
call gruvbox_material#highlight('YellowBold', s:palette.yellow, s:palette.none)
call gruvbox_material#highlight('GreenBold', s:palette.green, s:palette.none)
call gruvbox_material#highlight('AquaBold', s:palette.aqua, s:palette.none)
call gruvbox_material#highlight('BlueBold', s:palette.blue, s:palette.none)
call gruvbox_material#highlight('PurpleBold', s:palette.purple, s:palette.none)
endif
if s:configuration.transparent_background || s:configuration.sign_column_background !=# 'default'
call gruvbox_material#highlight('RedSign', s:palette.red, s:palette.none)
call gruvbox_material#highlight('OrangeSign', s:palette.orange, s:palette.none)
call gruvbox_material#highlight('YellowSign', s:palette.yellow, s:palette.none)
call gruvbox_material#highlight('GreenSign', s:palette.green, s:palette.none)
call gruvbox_material#highlight('AquaSign', s:palette.aqua, s:palette.none)
call gruvbox_material#highlight('BlueSign', s:palette.blue, s:palette.none)
call gruvbox_material#highlight('PurpleSign', s:palette.purple, s:palette.none)
else
call gruvbox_material#highlight('RedSign', s:palette.red, s:palette.bg2)
call gruvbox_material#highlight('OrangeSign', s:palette.orange, s:palette.bg2)
call gruvbox_material#highlight('YellowSign', s:palette.yellow, s:palette.bg2)
call gruvbox_material#highlight('GreenSign', s:palette.green, s:palette.bg2)
call gruvbox_material#highlight('AquaSign', s:palette.aqua, s:palette.bg2)
call gruvbox_material#highlight('BlueSign', s:palette.blue, s:palette.bg2)
call gruvbox_material#highlight('PurpleSign', s:palette.purple, s:palette.bg2)
endif
if s:configuration.diagnostic_line_highlight
call gruvbox_material#highlight('ErrorLine', s:palette.none, s:palette.bg_visual_red)
call gruvbox_material#highlight('WarningLine', s:palette.none, s:palette.bg_visual_yellow)
call gruvbox_material#highlight('InfoLine', s:palette.none, s:palette.bg_visual_blue)
call gruvbox_material#highlight('HintLine', s:palette.none, s:palette.bg_visual_green)
else
highlight clear ErrorLine
highlight clear WarningLine
highlight clear InfoLine
highlight clear HintLine
endif
if s:configuration.current_word ==# 'grey background'
call gruvbox_material#highlight('CurrentWord', s:palette.none, s:palette.bg_current_word)
else
call gruvbox_material#highlight('CurrentWord', s:palette.none, s:palette.none, s:configuration.current_word)
endif
" }}}
" }}}
" Terminal: {{{
if (has('termguicolors') && &termguicolors) || has('gui_running')
" Definition
let s:terminal = {
\ 'black': &background ==# 'dark' ? s:palette.bg0 : s:palette.fg0,
\ 'red': s:palette.red,
\ 'yellow': s:palette.yellow,
\ 'green': s:palette.green,
\ 'cyan': s:palette.aqua,
\ 'blue': s:palette.blue,
\ 'purple': s:palette.purple,
\ 'white': &background ==# 'dark' ? s:palette.fg0 : s:palette.bg0
\ }
" Implementation: {{{
if !has('nvim')
let g:terminal_ansi_colors = [s:terminal.black[0], s:terminal.red[0], s:terminal.green[0], s:terminal.yellow[0],
\ s:terminal.blue[0], s:terminal.purple[0], s:terminal.cyan[0], s:terminal.white[0], s:terminal.black[0], s:terminal.red[0],
\ s:terminal.green[0], s:terminal.yellow[0], s:terminal.blue[0], s:terminal.purple[0], s:terminal.cyan[0], s:terminal.white[0]]
else
let g:terminal_color_0 = s:terminal.black[0]
let g:terminal_color_1 = s:terminal.red[0]
let g:terminal_color_2 = s:terminal.green[0]
let g:terminal_color_3 = s:terminal.yellow[0]
let g:terminal_color_4 = s:terminal.blue[0]
let g:terminal_color_5 = s:terminal.purple[0]
let g:terminal_color_6 = s:terminal.cyan[0]
let g:terminal_color_7 = s:terminal.white[0]
let g:terminal_color_8 = s:terminal.black[0]
let g:terminal_color_9 = s:terminal.red[0]
let g:terminal_color_10 = s:terminal.green[0]
let g:terminal_color_11 = s:terminal.yellow[0]
let g:terminal_color_12 = s:terminal.blue[0]
let g:terminal_color_13 = s:terminal.purple[0]
let g:terminal_color_14 = s:terminal.cyan[0]
let g:terminal_color_15 = s:terminal.white[0]
endif
" }}}
endif
" }}}
" Plugins: {{{
" nvim-treesitter/nvim-treesitter {{{
highlight! link TSPunctDelimiter Grey
highlight! link TSPunctBracket Fg
highlight! link TSPunctSpecial Fg
highlight! link TSConstant PurpleItalic
highlight! link TSConstBuiltin PurpleItalic
highlight! link TSConstMacro Purple
highlight! link TSString Yellow
highlight! link TSStringRegex Green
highlight! link TSStringEscape Green
highlight! link TSCharacter Yellow
highlight! link TSNumber Purple
highlight! link TSBoolean Purple
highlight! link TSFloat Purple
highlight! link TSFunction Green
highlight! link TSFuncBuiltin Green
highlight! link TSFuncMacro Green
highlight! link TSParameter Fg
highlight! link TSMethod Green
highlight! link TSField Green
highlight! link TSProperty Green
highlight! link TSConstructor Fg
highlight! link TSConditional Red
highlight! link TSRepeat Red
highlight! link TSLabel Orange
highlight! link TSOperator Orange
highlight! link TSKeyword Red
highlight! link TSException Red
highlight! link TSType Aqua
highlight! link TSTypeBuiltin BlueItalic
highlight! link TSStructure Orange
highlight! link TSInclude PurpleItalic
" }}}
" neoclide/coc.nvim {{{
call gruvbox_material#highlight('CocHoverRange', s:palette.none, s:palette.none, 'bold,underline')
call gruvbox_material#highlight('CocErrorHighlight', s:palette.none, s:palette.none, 'undercurl', s:palette.red)
call gruvbox_material#highlight('CocWarningHighlight', s:palette.none, s:palette.none, 'undercurl', s:palette.yellow)
call gruvbox_material#highlight('CocInfoHighlight', s:palette.none, s:palette.none, 'undercurl', s:palette.blue)
call gruvbox_material#highlight('CocHintHighlight', s:palette.none, s:palette.none, 'undercurl', s:palette.aqua)
call gruvbox_material#highlight('CocErrorFloat', s:palette.red, s:palette.bg3)
call gruvbox_material#highlight('CocWarningFloat', s:palette.yellow, s:palette.bg3)
call gruvbox_material#highlight('CocInfoFloat', s:palette.blue, s:palette.bg3)
call gruvbox_material#highlight('CocHintFloat', s:palette.aqua, s:palette.bg3)
highlight! link CocHighlightText CurrentWord
highlight! link CocErrorSign RedSign
highlight! link CocWarningSign YellowSign
highlight! link CocInfoSign BlueSign
highlight! link CocHintSign AquaSign
highlight! link CocWarningVirtualText Grey
highlight! link CocErrorVirtualText Grey
highlight! link CocInfoVirtualText Grey
highlight! link CocHintVirtualText Grey
highlight! link CocErrorLine ErrorLine
highlight! link CocWarningLine WarningLine
highlight! link CocInfoLine InfoLine
highlight! link CocHintLine HintLine
highlight! link CocCodeLens Grey
highlight! link HighlightedyankRegion Visual
highlight! link CocGitAddedSign GreenSign
highlight! link CocGitChangeRemovedSign PurpleSign
highlight! link CocGitChangedSign BlueSign
highlight! link CocGitRemovedSign RedSign
highlight! link CocGitTopRemovedSign RedSign
highlight! link CocExplorerBufferRoot Orange
highlight! link CocExplorerBufferExpandIcon Aqua
highlight! link CocExplorerBufferBufnr Purple
highlight! link CocExplorerBufferModified Red
highlight! link CocExplorerBufferBufname Grey
highlight! link CocExplorerBufferFullpath Grey
highlight! link CocExplorerFileRoot Orange
highlight! link CocExplorerFileExpandIcon Aqua
highlight! link CocExplorerFileFullpath Grey
highlight! link CocExplorerFileDirectory Green
highlight! link CocExplorerFileGitStage Purple
highlight! link CocExplorerFileGitUnstage Yellow
highlight! link CocExplorerFileSize Blue
highlight! link CocExplorerTimeAccessed Aqua
highlight! link CocExplorerTimeCreated Aqua
highlight! link CocExplorerTimeModified Aqua
" }}}
" prabirshrestha/vim-lsp {{{
highlight! link LspErrorVirtual Grey
highlight! link LspWarningVirtual Grey
highlight! link LspInformationVirtual Grey
highlight! link LspHintVirtual Grey
highlight! link LspErrorHighlight CocErrorHighlight
highlight! link LspWarningHighlight CocWarningHighlight
highlight! link LspInformationHighlight CocInfoHighlight
highlight! link LspHintHighlight CocHintHighlight
highlight! link lspReference CurrentWord
" }}}
" ycm-core/YouCompleteMe {{{
highlight! link YcmErrorSign RedSign
highlight! link YcmWarningSign YellowSign
highlight! link YcmErrorLine ErrorLine
highlight! link YcmWarningLine WarningLine
highlight! link YcmErrorSection CocErrorHighlight
highlight! link YcmWarningSection CocWarningHighlight
" }}}
" dense-analysis/ale {{{
highlight! link ALEError CocErrorHighlight
highlight! link ALEWarning CocWarningHighlight
highlight! link ALEInfo CocInfoHighlight
highlight! link ALEErrorSign RedSign
highlight! link ALEWarningSign YellowSign
highlight! link ALEInfoSign BlueSign
highlight! link ALEErrorLine ErrorLine
highlight! link ALEWarningLine WarningLine
highlight! link ALEInfoLine InfoLine
highlight! link ALEVirtualTextError Grey
highlight! link ALEVirtualTextWarning Grey
highlight! link ALEVirtualTextInfo Grey
highlight! link ALEVirtualTextStyleError Grey
highlight! link ALEVirtualTextStyleWarning Grey
" }}}
" neomake/neomake {{{
highlight! link NeomakeError ALEError
highlight! link NeomakeErrorSign RedSign
highlight! link NeomakeWarning ALEWarning
highlight! link NeomakeWarningSign YellowSign
highlight! link NeomakeInfo ALEInfo
highlight! link NeomakeInfoSign BlueSign
highlight! link NeomakeMessage Aqua
highlight! link NeomakeMessageSign AquaSign
highlight! link NeomakeVirtualtextError Grey
highlight! link NeomakeVirtualtextWarning Grey
highlight! link NeomakeVirtualtextInfo Grey
highlight! link NeomakeVirtualtextMessag Grey
" }}}
" vim-syntastic/syntastic {{{
highlight! link SyntasticError ALEError
highlight! link SyntasticWarning ALEWarning
highlight! link SyntasticErrorSign RedSign
highlight! link SyntasticWarningSign YellowSign
highlight! link SyntasticErrorLine ErrorLine
highlight! link SyntasticWarningLine WarningLine
" }}}
" Yggdroot/LeaderF {{{
if !exists('g:Lf_StlColorscheme')
let g:Lf_StlColorscheme = 'gruvbox_material'
endif
if !exists('g:Lf_PopupColorscheme')
let g:Lf_PopupColorscheme = 'gruvbox_material'
endif
call gruvbox_material#highlight('Lf_hl_match', s:palette.green, s:palette.none, 'bold')
call gruvbox_material#highlight('Lf_hl_match0', s:palette.green, s:palette.none, 'bold')
call gruvbox_material#highlight('Lf_hl_match1', s:palette.aqua, s:palette.none, 'bold')
call gruvbox_material#highlight('Lf_hl_match2', s:palette.blue, s:palette.none, 'bold')
call gruvbox_material#highlight('Lf_hl_match3', s:palette.purple, s:palette.none, 'bold')
call gruvbox_material#highlight('Lf_hl_match4', s:palette.orange, s:palette.none, 'bold')
call gruvbox_material#highlight('Lf_hl_matchRefine', s:palette.red, s:palette.none, 'bold')
highlight! link Lf_hl_cursorline Fg
highlight! link Lf_hl_selection DiffAdd
highlight! link Lf_hl_rgHighlight Visual
highlight! link Lf_hl_gtagsHighlight Visual
" }}}
" junegunn/fzf.vim {{{
let g:fzf_colors = {
\ 'fg': ['fg', 'Normal'],
\ 'bg': ['bg', 'Normal'],
\ 'hl': ['fg', 'Green'],
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
\ 'hl+': ['fg', 'Aqua'],
\ 'info': ['fg', 'Aqua'],
\ 'prompt': ['fg', 'Orange'],
\ 'pointer': ['fg', 'Blue'],
\ 'marker': ['fg', 'Yellow'],
\ 'spinner': ['fg', 'Yellow'],
\ 'header': ['fg', 'Grey']
\ }
" }}}
" Shougo/denite.nvim {{{
call gruvbox_material#highlight('deniteMatchedChar', s:palette.green, s:palette.none, 'bold')
call gruvbox_material#highlight('deniteMatchedRange', s:palette.green, s:palette.none, 'bold,underline')
call gruvbox_material#highlight('deniteInput', s:palette.green, s:palette.bg4, 'bold')
call gruvbox_material#highlight('deniteStatusLineNumber', s:palette.purple, s:palette.bg4)
call gruvbox_material#highlight('deniteStatusLinePath', s:palette.fg0, s:palette.bg4)
highlight! link deniteSelectedLin Green
" }}}
" kien/ctrlp.vim {{{
call gruvbox_material#highlight('CtrlPMatch', s:palette.green, s:palette.none, 'bold')
call gruvbox_material#highlight('CtrlPPrtBase', s:palette.bg4, s:palette.none)
call gruvbox_material#highlight('CtrlPLinePre', s:palette.bg4, s:palette.none)
call gruvbox_material#highlight('CtrlPMode1', s:palette.blue, s:palette.bg4, 'bold')
call gruvbox_material#highlight('CtrlPMode2', s:palette.bg0, s:palette.blue, 'bold')
call gruvbox_material#highlight('CtrlPStats', s:palette.grey2, s:palette.bg4, 'bold')
highlight! link CtrlPNoEntries Red
highlight! link CtrlPPrtCursor Blue
" }}}
" airblade/vim-gitgutter {{{
highlight! link GitGutterAdd GreenSign
highlight! link GitGutterChange BlueSign
highlight! link GitGutterDelete RedSign
highlight! link GitGutterChangeDelete PurpleSign
" }}}
" mhinz/vim-signify {{{
highlight! link SignifySignAdd GreenSign
highlight! link SignifySignChange BlueSign
highlight! link SignifySignDelete RedSign
highlight! link SignifySignChangeDelete PurpleSign
" }}}
" andymass/vim-matchup {{{
call gruvbox_material#highlight('MatchParenCur', s:palette.none, s:palette.none, 'bold')
call gruvbox_material#highlight('MatchWord', s:palette.none, s:palette.none, 'underline')
call gruvbox_material#highlight('MatchWordCur', s:palette.none, s:palette.none, 'underline')
" }}}
" easymotion/vim-easymotion {{{
highlight! link EasyMotionTarget Search
highlight! link EasyMotionShade Grey
" }}}
" justinmk/vim-sneak {{{
call gruvbox_material#highlight('SneakLabelMask', s:palette.bg_green, s:palette.bg_green)
highlight! link Sneak Search
highlight! link SneakLabel Search
highlight! link SneakScope DiffText
" }}}
" terryma/vim-multiple-cursors {{{
highlight! link multiple_cursors_cursor Cursor
highlight! link multiple_cursors_visual Visual
" }}}
" mg979/vim-visual-multi {{{
let g:VM_Mono_hl = 'Cursor'
let g:VM_Extend_hl = 'Visual'
let g:VM_Cursor_hl = 'Cursor'
let g:VM_Insert_hl = 'Cursor'
" }}}
" dominikduda/vim_current_word {{{
highlight! link CurrentWord CurrentWord
highlight! link CurrentWordTwins CurrentWord
" }}}
" RRethy/vim-illuminate {{{
highlight! link illuminatedWord CurrentWord
" }}}
" itchyny/vim-cursorword {{{
highlight! link CursorWord0 CurrentWord
highlight! link CursorWord1 CurrentWord
" }}}
" Yggdroot/indentLine {{{
let g:indentLine_color_gui = s:palette.grey0[0]
let g:indentLine_color_term = s:palette.grey0[1]
" }}}
" nathanaelkane/vim-indent-guides {{{
if get(g:, 'indent_guides_auto_colors', 1) == 0
call gruvbox_material#highlight('IndentGuidesOdd', s:palette.bg0, s:palette.bg2)
call gruvbox_material#highlight('IndentGuidesEven', s:palette.bg0, s:palette.bg3)
endif
" }}}
" luochen1990/rainbow {{{
if !exists('g:rbpt_colorpairs')
let g:rbpt_colorpairs = [['blue', s:palette.blue[0]], ['magenta', s:palette.purple[0]],
\ ['red', s:palette.red[0]], ['166', s:palette.orange[0]]]
endif
let g:rainbow_guifgs = [ s:palette.orange[0], s:palette.red[0], s:palette.purple[0], s:palette.blue[0] ]
let g:rainbow_ctermfgs = [ '166', 'red', 'magenta', 'blue' ]
if !exists('g:rainbow_conf')
let g:rainbow_conf = {}
endif
if !has_key(g:rainbow_conf, 'guifgs')
let g:rainbow_conf['guifgs'] = g:rainbow_guifgs
endif
if !has_key(g:rainbow_conf, 'ctermfgs')
let g:rainbow_conf['ctermfgs'] = g:rainbow_ctermfgs
endif
let g:niji_dark_colours = g:rbpt_colorpairs
let g:niji_light_colours = g:rbpt_colorpairs
" }}}
" kshenoy/vim-signature {{{
highlight! link SignatureMarkText BlueSign
highlight! link SignatureMarkerText PurpleSign
" }}}
" ap/vim-buftabline {{{
highlight! link BufTabLineCurrent TabLineSel
highlight! link BufTabLineActive TabLine
highlight! link BufTabLineHidden TabLineFill
highlight! link BufTabLineFill TabLineFill
" }}}
" liuchengxu/vim-which-key {{{
highlight! link WhichKey Red
highlight! link WhichKeySeperator Green
highlight! link WhichKeyGroup Yellow
highlight! link WhichKeyDesc Blue
" }}}
" unblevable/quick-scope {{{
call gruvbox_material#highlight('QuickScopePrimary', s:palette.aqua, s:palette.none, 'underline')
call gruvbox_material#highlight('QuickScopeSecondary', s:palette.blue, s:palette.none, 'underline')
" }}}
" APZelos/blamer.nvim {{{
highlight! link Blamer Grey
" }}}
" cohama/agit.vim {{{
highlight! link agitTree Grey
highlight! link agitDate Green
highlight! link agitRemote Red
highlight! link agitHead Orange
highlight! link agitRef Aqua
highlight! link agitTag Orange
highlight! link agitStatFile Blue
highlight! link agitStatRemoved Red
highlight! link agitStatAdded Green
highlight! link agitStatMessage Orange
highlight! link agitDiffRemove Red
highlight! link agitDiffAdd Green
highlight! link agitDiffHeader Purple
" }}}
" netrw {{{
" https://www.vim.org/scripts/script.php?script_id=1075
highlight! link netrwDir Green
highlight! link netrwClassify Green
highlight! link netrwLink Grey
highlight! link netrwSymLink Fg
highlight! link netrwExe Yellow
highlight! link netrwComment Grey
highlight! link netrwList Aqua
highlight! link netrwHelpCmd Blue
highlight! link netrwCmdSep Grey
highlight! link netrwVersion Orange
" }}}
" }}}
" Extended File Types: {{{
" Note: To ensure that the `s:last_modified` variable is always up to date, you need to copy `.githooks/pre-commit` to `.git/hooks/pre-commit`.
" Generate the `after/ftplugin` directory based on the comment tags in this file.
" For example, the content between `ft_begin: sh/zsh` and `ft_end` will be placed in `after/ftplugin/sh/gruvbox_material.vim` and `after/ftplugin/zsh/gruvbox_material.vim`.
if gruvbox_material#ft_exists(s:path) " If the ftplugin exists.
if s:configuration.better_performance
if !gruvbox_material#ft_newest(s:path, s:last_modified) " Regenerate if it's not up to date.
call gruvbox_material#ft_clean(s:path, 0)
call gruvbox_material#ft_gen(s:path, s:last_modified, 'update')
endif
finish
elseif !has('nvim') " Only clean the `after/ftplugin` directory when in vim. This code will produce a bug in neovim.
call gruvbox_material#ft_clean(s:path, 1)
endif
else
if s:configuration.better_performance
call gruvbox_material#ft_gen(s:path, s:last_modified, 'generate')
finish
endif
endif
" ft_begin: vim-plug {{{
" https://github.com/junegunn/vim-plug
call gruvbox_material#highlight('plug1', s:palette.orange, s:palette.none, 'bold')
call gruvbox_material#highlight('plugNumber', s:palette.yellow, s:palette.none, 'bold')
highlight! link plug2 Green
highlight! link plugBracket Grey
highlight! link plugName Aqua
highlight! link plugDash Orange
highlight! link plugError Red
highlight! link plugNotLoaded Grey
highlight! link plugRelDate Grey
highlight! link plugH2 Orange
highlight! link plugMessage Orange
highlight! link plugStar Red
highlight! link plugUpdate Blue
highlight! link plugDeleted Grey
highlight! link plugEdge Yellow
highlight! link plugSha Green
" ft_end }}}
" ft_begin: tagbar {{{
" https://github.com/majutsushi/tagbar
highlight! link TagbarFoldIcon Green
highlight! link TagbarSignature Green
highlight! link TagbarKind Red
highlight! link TagbarScope Orange
highlight! link TagbarNestedKind Aqua
highlight! link TagbarVisibilityPrivate Red
highlight! link TagbarVisibilityPublic Blue
" ft_end }}}
" ft_begin: vista/vista_kind/vista_markdown {{{
" https://github.com/liuchengxu/vista.vim
highlight! link VistaBracket Grey
highlight! link VistaChildrenNr Orange
highlight! link VistaScope Red
highlight! link VistaTag Green
highlight! link VistaPrefix Grey
highlight! link VistaIcon Orange
highlight! link VistaScopeKind Yellow
highlight! link VistaColon Grey
highlight! link VistaLineNr Grey
highlight! link VistaHeadNr Fg
highlight! link VistaPublic Green
highlight! link VistaProtected Yellow
highlight! link VistaPrivate Red
" ft_end }}}
" ft_begin: nerdtree {{{
" https://github.com/preservim/nerdtree
highlight! link NERDTreeDir Green
highlight! link NERDTreeDirSlash Aqua
highlight! link NERDTreeOpenable Orange
highlight! link NERDTreeClosable Orange
highlight! link NERDTreeFile Fg
highlight! link NERDTreeExecFile Yellow
highlight! link NERDTreeUp Grey
highlight! link NERDTreeCWD Aqua
highlight! link NERDTreeHelp LightGrey
highlight! link NERDTreeToggleOn Green
highlight! link NERDTreeToggleOff Red
highlight! link NERDTreeFlags Orange
highlight! link NERDTreeLinkFile Grey
highlight! link NERDTreeLinkTarget Green
" ft_end }}}
" ft_begin: dirvish {{{
" https://github.com/justinmk/vim-dirvish
highlight! link DirvishPathTail Aqua
highlight! link DirvishArg Yellow
" ft_end }}}
" ft_begin: startify/quickmenu {{{
" https://github.com/mhinz/vim-startify
" https://github.com/skywind3000/quickmenu.vim
highlight! link StartifyBracket Grey
highlight! link StartifyFile Fg
highlight! link StartifyNumber Red
highlight! link StartifyPath Green
highlight! link StartifySlash Green
highlight! link StartifySection Blue
highlight! link StartifyHeader Orange
highlight! link StartifySpecial Grey
highlight! link StartifyFooter Grey
" ft_end }}}
" ft_begin: quickmenu {{{
" https://github.com/skywind3000/quickmenu.vim
highlight! link QuickmenuOption Green
highlight! link QuickmenuNumber Red
highlight! link QuickmenuBracket Grey
highlight! link QuickmenuHelp Green
highlight! link QuickmenuSpecial Purple
highlight! link QuickmenuHeader Orange
" ft_end }}}
" ft_begin: undotree {{{
" https://github.com/mbbill/undotree
call gruvbox_material#highlight('UndotreeSavedBig', s:palette.purple, s:palette.none, 'bold')
highlight! link UndotreeNode Orange
highlight! link UndotreeNodeCurrent Red
highlight! link UndotreeSeq Green
highlight! link UndotreeNext Blue
highlight! link UndotreeTimeStamp Grey
highlight! link UndotreeHead Yellow
highlight! link UndotreeBranch Yellow
highlight! link UndotreeCurrent Aqua
highlight! link UndotreeSavedSmall Purple
" ft_end }}}
" ft_begin: markdown {{{
" builtin: {{{
call gruvbox_material#highlight('markdownH1', s:palette.red, s:palette.none, 'bold')
call gruvbox_material#highlight('markdownH2', s:palette.orange, s:palette.none, 'bold')
call gruvbox_material#highlight('markdownH3', s:palette.yellow, s:palette.none, 'bold')
call gruvbox_material#highlight('markdownH4', s:palette.green, s:palette.none, 'bold')
call gruvbox_material#highlight('markdownH5', s:palette.blue, s:palette.none, 'bold')
call gruvbox_material#highlight('markdownH6', s:palette.purple, s:palette.none, 'bold')
call gruvbox_material#highlight('markdownUrl', s:palette.blue, s:palette.none, 'underline')
call gruvbox_material#highlight('markdownItalic', s:palette.none, s:palette.none, 'italic')
call gruvbox_material#highlight('markdownBold', s:palette.none, s:palette.none, 'bold')
call gruvbox_material#highlight('markdownItalicDelimiter', s:palette.grey1, s:palette.none, 'italic')
highlight! link markdownCode Green
highlight! link markdownCodeBlock Aqua
highlight! link markdownCodeDelimiter Aqua
highlight! link markdownBlockquote Grey
highlight! link markdownListMarker Red
highlight! link markdownOrderedListMarker Red
highlight! link markdownRule Purple
highlight! link markdownHeadingRule Grey
highlight! link markdownUrlDelimiter Grey
highlight! link markdownLinkDelimiter Grey
highlight! link markdownLinkTextDelimiter Grey
highlight! link markdownHeadingDelimiter Grey
highlight! link markdownLinkText Purple
highlight! link markdownUrlTitleDelimiter Green
highlight! link markdownIdDeclaration markdownLinkText
highlight! link markdownBoldDelimiter Grey
highlight! link markdownId Yellow
" }}}
" vim-markdown: https://github.com/gabrielelana/vim-markdown {{{
call gruvbox_material#highlight('mkdURL', s:palette.blue, s:palette.none, 'underline')
call gruvbox_material#highlight('mkdInlineURL', s:palette.purple, s:palette.none, 'underline')
call gruvbox_material#highlight('mkdItalic', s:palette.grey1, s:palette.none, 'italic')
highlight! link mkdCodeDelimiter Aqua
highlight! link mkdBold Grey
highlight! link mkdLink Purple
highlight! link mkdHeading Grey
highlight! link mkdListItem Red
highlight! link mkdRule Purple
highlight! link mkdDelimiter Grey
highlight! link mkdId Yellow
" }}}
" ft_end }}}
" ft_begin: rst {{{
" builtin: https://github.com/marshallward/vim-restructuredtext {{{
call gruvbox_material#highlight('rstStandaloneHyperlink', s:palette.purple, s:palette.none, 'underline')
highlight! link rstSubstitutionReference Blue
highlight! link rstInterpretedTextOrHyperlinkReference Aqua
highlight! link rstTableLines Grey
" }}}
" ft_end }}}
" ft_begin: tex {{{
" builtin: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX {{{
highlight! link texStatement Green
highlight! link texOnlyMath Grey
highlight! link texDefName Yellow
highlight! link texNewCmd Orange
highlight! link texCmdName Blue
highlight! link texBeginEnd Red
highlight! link texBeginEndName Blue
highlight! link texDocType Purple
highlight! link texDocTypeArgs Orange
" }}}
" ft_end }}}
" ft_begin: html/markdown/javascriptreact/typescriptreact {{{
" builtin: https://notabug.org/jorgesumle/vim-html-syntax {{{
call gruvbox_material#highlight('htmlH1', s:palette.red, s:palette.none, 'bold')
call gruvbox_material#highlight('htmlH2', s:palette.orange, s:palette.none, 'bold')
call gruvbox_material#highlight('htmlH3', s:palette.yellow, s:palette.none, 'bold')
call gruvbox_material#highlight('htmlH4', s:palette.green, s:palette.none, 'bold')
call gruvbox_material#highlight('htmlH5', s:palette.blue, s:palette.none, 'bold')
call gruvbox_material#highlight('htmlH6', s:palette.purple, s:palette.none, 'bold')
call gruvbox_material#highlight('htmlLink', s:palette.none, s:palette.none, 'underline')
call gruvbox_material#highlight('htmlBold', s:palette.none, s:palette.none, 'bold')
call gruvbox_material#highlight('htmlBoldUnderline', s:palette.none, s:palette.none, 'bold,underline')
call gruvbox_material#highlight('htmlBoldItalic', s:palette.none, s:palette.none, 'bold,italic')
call gruvbox_material#highlight('htmlBoldUnderlineItalic', s:palette.none, s:palette.none, 'bold,underline,italic')
call gruvbox_material#highlight('htmlUnderline', s:palette.none, s:palette.none, 'underline')
call gruvbox_material#highlight('htmlUnderlineItalic', s:palette.none, s:palette.none, 'underline,italic')
call gruvbox_material#highlight('htmlItalic', s:palette.none, s:palette.none, 'italic')
highlight! link htmlTag Green
highlight! link htmlEndTag Blue
highlight! link htmlTagN OrangeItalic
highlight! link htmlTagName OrangeItalic
highlight! link htmlArg Aqua
highlight! link htmlScriptTag Purple
highlight! link htmlSpecialTagName RedItalic
" }}}
" ft_end }}}
" ft_begin: xml {{{
" builtin: https://github.com/chrisbra/vim-xml-ftplugin {{{
highlight! link xmlTag Green
highlight! link xmlEndTag Blue
highlight! link xmlTagName OrangeItalic
highlight! link xmlEqual Orange
highlight! link xmlAttrib Aqua
highlight! link xmlEntity Red
highlight! link xmlEntityPunct Red
highlight! link xmlDocTypeDecl Grey
highlight! link xmlDocTypeKeyword PurpleItalic
highlight! link xmlCdataStart Grey
highlight! link xmlCdataCdata Purple
" }}}
" ft_end }}}
" ft_begin: css/scss/sass/less {{{
" builtin: https://github.com/JulesWang/css.vim {{{
highlight! link cssAttrComma Fg
highlight! link cssBraces Fg
highlight! link cssTagName PurpleItalic
highlight! link cssClassNameDot Red
highlight! link cssClassName RedItalic
highlight! link cssFunctionName Yellow
highlight! link cssAttr Orange
highlight! link cssProp Aqua
highlight! link cssCommonAttr Yellow
highlight! link cssPseudoClassId Blue
highlight! link cssPseudoClassFn Green
highlight! link cssPseudoClass Purple
highlight! link cssImportant RedItalic
highlight! link cssSelectorOp Orange
highlight! link cssSelectorOp2 Orange
highlight! link cssColor Green
highlight! link cssAttributeSelector Aqua
highlight! link cssUnitDecorators Orange
highlight! link cssValueLength Green
highlight! link cssValueInteger Green
highlight! link cssValueNumber Green
highlight! link cssValueAngle Green
highlight! link cssValueTime Green
highlight! link cssValueFrequency Green
highlight! link cssVendor Grey
highlight! link cssNoise Grey
" }}}
" ft_end }}}
" ft_begin: scss {{{
" scss-syntax: https://github.com/cakebaker/scss-syntax.vim {{{
highlight! link scssMixinName Yellow
highlight! link scssSelectorChar Red
highlight! link scssSelectorName RedItalic
highlight! link scssInterpolationDelimiter Green
highlight! link scssVariableValue Green
highlight! link scssNull Purple
highlight! link scssBoolean Purple
highlight! link scssVariableAssignment Grey
highlight! link scssForKeyword PurpleItalic
highlight! link scssAttribute Orange
highlight! link scssFunctionName Yellow
" }}}
" ft_end }}}
" ft_begin: sass {{{
" builtin: {{{
highlight! link sassProperty Aqua
highlight! link sassAmpersand Orange
highlight! link sassClass RedItalic
highlight! link sassClassChar Red
highlight! link sassMixing PurpleItalic
highlight! link sassMixinName Orange
highlight! link sassCssAttribute Yellow
highlight! link sassInterpolationDelimiter Green
highlight! link sassFunction Yellow
highlight! link sassControl RedItalic
highlight! link sassFor RedItalic
highlight! link sassFunctionName GreenBold
" }}}
" ft_end }}}
" ft_begin: less {{{
" vim-less: https://github.com/groenewege/vim-less {{{
highlight! link lessMixinChar Grey
highlight! link lessClass RedItalic
highlight! link lessVariable Blue
highlight! link lessAmpersandChar Orange
highlight! link lessFunction Yellow
" }}}
" ft_end }}}
" ft_begin: javascript/javascriptreact {{{
" builtin: http://www.fleiner.com/vim/syntax/javascript.vim {{{
highlight! link javaScriptNull Aqua
highlight! link javaScriptIdentifier Orange
highlight! link javaScriptParens Fg
highlight! link javaScriptBraces Fg
highlight! link javaScriptGlobal Purple
highlight! link javaScriptMessage Yellow
highlight! link javaScriptFunction RedItalic
highlight! link javaScriptOperator Orange
highlight! link javaScriptMember Aqua
" }}}
" vim-javascript: https://github.com/pangloss/vim-javascript {{{
highlight! link jsThis Purple
highlight! link jsUndefined Aqua
highlight! link jsNull Aqua
highlight! link jsNan Aqua
highlight! link jsSuper Purple
highlight! link jsPrototype Purple
highlight! link jsFunction RedItalic
highlight! link jsGlobalNodeObjects PurpleItalic
highlight! link jsGlobalObjects Yellow
highlight! link jsArrowFunction Purple
highlight! link jsArrowFuncArgs Blue
highlight! link jsFuncArgs Blue
highlight! link jsObjectProp Aqua
highlight! link jsVariableDef Blue
highlight! link jsObjectKey Aqua
highlight! link jsParen Blue
highlight! link jsParenIfElse Blue