-
Notifications
You must be signed in to change notification settings - Fork 119
/
sonokai.vim
2947 lines (2942 loc) · 124 KB
/
sonokai.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: Sonokai
" Description: High Contrast & Vivid Color Scheme based on Monokai Pro
" Author: Sainnhepark <[email protected]>
" Website: https://github.com/sainnhe/sonokai/
" License: MIT
" -----------------------------------------------------------------------------
" Initialization: {{{
let s:configuration = sonokai#get_configuration()
let s:palette = sonokai#get_palette(s:configuration.style, s:configuration.colors_override)
let s:path = expand('<sfile>:p') " the path of this script
let s:last_modified = 'Mon Sep 30 10:09:56 UTC 2024'
let g:sonokai_loaded_file_types = []
if !(exists('g:colors_name') && g:colors_name ==# 'sonokai' && s:configuration.better_performance)
highlight clear
if exists('syntax_on')
syntax reset
endif
endif
let g:colors_name = 'sonokai'
if !(has('termguicolors') && &termguicolors) && !has('gui_running') && &t_Co != 256
finish
endif
" }}}
" Common Highlight Groups: {{{
" UI: {{{
if s:configuration.transparent_background >= 1
call sonokai#highlight('Normal', s:palette.fg, s:palette.none)
call sonokai#highlight('NormalNC', s:palette.fg, s:palette.none)
call sonokai#highlight('Terminal', s:palette.fg, s:palette.none)
if s:configuration.show_eob
call sonokai#highlight('EndOfBuffer', s:palette.bg4, s:palette.none)
else
call sonokai#highlight('EndOfBuffer', s:palette.bg0, s:palette.none)
endif
call sonokai#highlight('Folded', s:palette.grey, s:palette.none)
call sonokai#highlight('ToolbarLine', s:palette.fg, s:palette.none)
call sonokai#highlight('FoldColumn', s:palette.grey_dim, s:palette.none)
else
call sonokai#highlight('Normal', s:palette.fg, s:palette.bg0)
if s:configuration.dim_inactive_windows
call sonokai#highlight('NormalNC', s:palette.fg, s:palette.bg_dim)
else
call sonokai#highlight('NormalNC', s:palette.fg, s:palette.bg0)
endif
call sonokai#highlight('Terminal', s:palette.fg, s:palette.bg0)
if s:configuration.show_eob
call sonokai#highlight('EndOfBuffer', s:palette.bg4, s:palette.none)
else
call sonokai#highlight('EndOfBuffer', s:palette.bg0, s:palette.none)
endif
call sonokai#highlight('Folded', s:palette.grey, s:palette.bg1)
call sonokai#highlight('ToolbarLine', s:palette.fg, s:palette.bg2)
call sonokai#highlight('FoldColumn', s:palette.grey_dim, s:palette.none)
endif
call sonokai#highlight('SignColumn', s:palette.fg, s:palette.none)
if has('nvim')
call sonokai#highlight('IncSearch', s:palette.bg0, s:palette.bg_red)
call sonokai#highlight('Search', s:palette.bg0, s:palette.bg_green)
else
call sonokai#highlight('IncSearch', s:palette.bg_red, s:palette.bg0, 'reverse')
call sonokai#highlight('Search', s:palette.bg_green, s:palette.bg0, 'reverse')
endif
highlight! link CurSearch IncSearch
call sonokai#highlight('ColorColumn', s:palette.none, s:palette.bg1)
call sonokai#highlight('Conceal', s:palette.grey_dim, s:palette.none)
if s:configuration.cursor ==# 'auto'
call sonokai#highlight('Cursor', s:palette.none, s:palette.none, 'reverse')
else
call sonokai#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
if &diff
call sonokai#highlight('CursorLine', s:palette.none, s:palette.none, 'underline')
call sonokai#highlight('CursorColumn', s:palette.none, s:palette.none, 'bold')
else
call sonokai#highlight('CursorLine', s:palette.none, s:palette.bg1)
call sonokai#highlight('CursorColumn', s:palette.none, s:palette.bg1)
endif
call sonokai#highlight('LineNr', s:palette.grey_dim, s:palette.none)
if &diff
call sonokai#highlight('CursorLineNr', s:palette.fg, s:palette.none, 'underline')
else
call sonokai#highlight('CursorLineNr', s:palette.fg, s:palette.none)
endif
call sonokai#highlight('DiffAdd', s:palette.none, s:palette.diff_green)
call sonokai#highlight('DiffChange', s:palette.none, s:palette.diff_blue)
call sonokai#highlight('DiffDelete', s:palette.none, s:palette.diff_red)
if has('nvim')
call sonokai#highlight('DiffText', s:palette.bg0, s:palette.blue)
else
call sonokai#highlight('DiffText', s:palette.blue, s:palette.bg0, 'reverse')
endif
call sonokai#highlight('Directory', s:palette.green, s:palette.none)
call sonokai#highlight('ErrorMsg', s:palette.red, s:palette.none, 'bold,underline')
call sonokai#highlight('WarningMsg', s:palette.yellow, s:palette.none, 'bold')
call sonokai#highlight('ModeMsg', s:palette.fg, s:palette.none, 'bold')
call sonokai#highlight('MoreMsg', s:palette.blue, s:palette.none, 'bold')
call sonokai#highlight('MatchParen', s:palette.none, s:palette.bg4)
call sonokai#highlight('NonText', s:palette.bg4, s:palette.none)
if has('nvim')
call sonokai#highlight('Whitespace', s:palette.bg4, s:palette.none)
call sonokai#highlight('SpecialKey', s:palette.purple, s:palette.none)
else
call sonokai#highlight('SpecialKey', s:palette.bg4, s:palette.none)
endif
call sonokai#highlight('Pmenu', s:palette.fg, s:palette.bg2)
call sonokai#highlight('PmenuSbar', s:palette.none, s:palette.bg2)
if s:configuration.menu_selection_background ==# 'blue'
call sonokai#highlight('PmenuSel', s:palette.bg0, s:palette.bg_blue)
elseif s:configuration.menu_selection_background ==# 'green'
call sonokai#highlight('PmenuSel', s:palette.bg0, s:palette.bg_green)
elseif s:configuration.menu_selection_background ==# 'red'
call sonokai#highlight('PmenuSel', s:palette.bg0, s:palette.bg_red)
endif
call sonokai#highlight('PmenuKind', s:palette.green, s:palette.bg2)
call sonokai#highlight('PmenuExtra', s:palette.grey, s:palette.bg2)
highlight! link WildMenu PmenuSel
call sonokai#highlight('PmenuThumb', s:palette.none, s:palette.grey)
if s:configuration.float_style ==# 'dim'
call sonokai#highlight('NormalFloat', s:palette.fg, s:palette.bg_dim)
call sonokai#highlight('FloatBorder', s:palette.grey, s:palette.bg_dim)
call sonokai#highlight('FloatTitle', s:palette.red, s:palette.bg_dim, 'bold')
else
call sonokai#highlight('NormalFloat', s:palette.fg, s:palette.bg2)
call sonokai#highlight('FloatBorder', s:palette.grey, s:palette.bg2)
call sonokai#highlight('FloatTitle', s:palette.red, s:palette.bg2, 'bold')
endif
call sonokai#highlight('Question', s:palette.yellow, s:palette.none)
if s:configuration.spell_foreground ==# 'none'
call sonokai#highlight('SpellBad', s:palette.none, s:palette.none, 'undercurl', s:palette.red)
call sonokai#highlight('SpellCap', s:palette.none, s:palette.none, 'undercurl', s:palette.yellow)
call sonokai#highlight('SpellLocal', s:palette.none, s:palette.none, 'undercurl', s:palette.blue)
call sonokai#highlight('SpellRare', s:palette.none, s:palette.none, 'undercurl', s:palette.purple)
else
call sonokai#highlight('SpellBad', s:palette.red, s:palette.none, 'undercurl', s:palette.red)
call sonokai#highlight('SpellCap', s:palette.yellow, s:palette.none, 'undercurl', s:palette.yellow)
call sonokai#highlight('SpellLocal', s:palette.blue, s:palette.none, 'undercurl', s:palette.blue)
call sonokai#highlight('SpellRare', s:palette.purple, s:palette.none, 'undercurl', s:palette.purple)
endif
if s:configuration.transparent_background == 2
call sonokai#highlight('StatusLine', s:palette.fg, s:palette.none)
call sonokai#highlight('StatusLineTerm', s:palette.fg, s:palette.none)
call sonokai#highlight('StatusLineNC', s:palette.grey, s:palette.none)
call sonokai#highlight('StatusLineTermNC', s:palette.grey, s:palette.none)
call sonokai#highlight('TabLine', s:palette.fg, s:palette.bg4)
call sonokai#highlight('TabLineFill', s:palette.grey, s:palette.none)
call sonokai#highlight('TabLineSel', s:palette.bg0, s:palette.bg_red)
if has('nvim')
call sonokai#highlight('WinBar', s:palette.fg, s:palette.none, 'bold')
call sonokai#highlight('WinBarNC', s:palette.grey, s:palette.none)
endif
else
call sonokai#highlight('StatusLine', s:palette.fg, s:palette.bg3)
call sonokai#highlight('StatusLineTerm', s:palette.fg, s:palette.bg3)
call sonokai#highlight('StatusLineNC', s:palette.grey, s:palette.bg1)
call sonokai#highlight('StatusLineTermNC', s:palette.grey, s:palette.bg1)
call sonokai#highlight('TabLine', s:palette.fg, s:palette.bg4)
call sonokai#highlight('TabLineFill', s:palette.grey, s:palette.bg1)
call sonokai#highlight('TabLineSel', s:palette.bg0, s:palette.bg_red)
if has('nvim')
call sonokai#highlight('WinBar', s:palette.fg, s:palette.bg3, 'bold')
call sonokai#highlight('WinBarNC', s:palette.grey, s:palette.bg1)
endif
endif
if s:configuration.dim_inactive_windows
call sonokai#highlight('VertSplit', s:palette.bg4, s:palette.bg_dim)
else
call sonokai#highlight('VertSplit', s:palette.black, s:palette.none)
endif
highlight! link WinSeparator VertSplit
call sonokai#highlight('Visual', s:palette.none, s:palette.bg3)
call sonokai#highlight('VisualNOS', s:palette.none, s:palette.bg3, 'underline')
call sonokai#highlight('QuickFixLine', s:palette.blue, s:palette.none, 'bold')
call sonokai#highlight('Debug', s:palette.yellow, s:palette.none)
call sonokai#highlight('debugPC', s:palette.bg0, s:palette.green)
call sonokai#highlight('debugBreakpoint', s:palette.bg0, s:palette.red)
call sonokai#highlight('ToolbarButton', s:palette.bg0, s:palette.bg_blue)
if has('nvim')
call sonokai#highlight('Substitute', s:palette.bg0, s:palette.yellow)
if s:configuration.diagnostic_text_highlight
call sonokai#highlight('DiagnosticError', s:palette.red, s:palette.diff_red)
call sonokai#highlight('DiagnosticUnderlineError', s:palette.none, s:palette.diff_red, 'undercurl', s:palette.red)
call sonokai#highlight('DiagnosticWarn', s:palette.yellow, s:palette.diff_yellow)
call sonokai#highlight('DiagnosticUnderlineWarn', s:palette.none, s:palette.diff_yellow, 'undercurl', s:palette.yellow)
call sonokai#highlight('DiagnosticInfo', s:palette.blue, s:palette.diff_blue)
call sonokai#highlight('DiagnosticUnderlineInfo', s:palette.none, s:palette.diff_blue, 'undercurl', s:palette.blue)
call sonokai#highlight('DiagnosticHint', s:palette.green, s:palette.diff_green)
call sonokai#highlight('DiagnosticUnderlineHint', s:palette.none, s:palette.diff_green, 'undercurl', s:palette.green)
else
call sonokai#highlight('DiagnosticError', s:palette.red, s:palette.none)
call sonokai#highlight('DiagnosticUnderlineError', s:palette.none, s:palette.none, 'undercurl', s:palette.red)
call sonokai#highlight('DiagnosticWarn', s:palette.yellow, s:palette.none)
call sonokai#highlight('DiagnosticUnderlineWarn', s:palette.none, s:palette.none, 'undercurl', s:palette.yellow)
call sonokai#highlight('DiagnosticInfo', s:palette.blue, s:palette.none)
call sonokai#highlight('DiagnosticUnderlineInfo', s:palette.none, s:palette.none, 'undercurl', s:palette.blue)
call sonokai#highlight('DiagnosticHint', s:palette.green, s:palette.none)
call sonokai#highlight('DiagnosticUnderlineHint', s:palette.none, s:palette.none, 'undercurl', s:palette.green)
endif
highlight! link DiagnosticFloatingError ErrorFloat
highlight! link DiagnosticFloatingWarn WarningFloat
highlight! link DiagnosticFloatingInfo InfoFloat
highlight! link DiagnosticFloatingHint HintFloat
highlight! link DiagnosticVirtualTextError VirtualTextError
highlight! link DiagnosticVirtualTextWarn VirtualTextWarning
highlight! link DiagnosticVirtualTextInfo VirtualTextInfo
highlight! link DiagnosticVirtualTextHint VirtualTextHint
highlight! link DiagnosticSignError RedSign
highlight! link DiagnosticSignWarn YellowSign
highlight! link DiagnosticSignInfo BlueSign
highlight! link DiagnosticSignHint GreenSign
highlight! link LspDiagnosticsFloatingError DiagnosticFloatingError
highlight! link LspDiagnosticsFloatingWarning DiagnosticFloatingWarn
highlight! link LspDiagnosticsFloatingInformation DiagnosticFloatingInfo
highlight! link LspDiagnosticsFloatingHint DiagnosticFloatingHint
highlight! link LspDiagnosticsDefaultError DiagnosticError
highlight! link LspDiagnosticsDefaultWarning DiagnosticWarn
highlight! link LspDiagnosticsDefaultInformation DiagnosticInfo
highlight! link LspDiagnosticsDefaultHint DiagnosticHint
highlight! link LspDiagnosticsVirtualTextError DiagnosticVirtualTextError
highlight! link LspDiagnosticsVirtualTextWarning DiagnosticVirtualTextWarn
highlight! link LspDiagnosticsVirtualTextInformation DiagnosticVirtualTextInfo
highlight! link LspDiagnosticsVirtualTextHint DiagnosticVirtualTextHint
highlight! link LspDiagnosticsUnderlineError DiagnosticUnderlineError
highlight! link LspDiagnosticsUnderlineWarning DiagnosticUnderlineWarn
highlight! link LspDiagnosticsUnderlineInformation DiagnosticUnderlineInfo
highlight! link LspDiagnosticsUnderlineHint DiagnosticUnderlineHint
highlight! link LspDiagnosticsSignError DiagnosticSignError
highlight! link LspDiagnosticsSignWarning DiagnosticSignWarn
highlight! link LspDiagnosticsSignInformation DiagnosticSignInfo
highlight! link LspDiagnosticsSignHint DiagnosticSignHint
highlight! link LspReferenceText CurrentWord
highlight! link LspReferenceRead CurrentWord
highlight! link LspReferenceWrite CurrentWord
highlight! link LspInlayHint InlayHints
highlight! link LspCodeLens VirtualTextInfo
highlight! link LspCodeLensSeparator VirtualTextHint
highlight! link LspSignatureActiveParameter Search
highlight! link TermCursor Cursor
highlight! link healthError Red
highlight! link healthSuccess Green
highlight! link healthWarning Yellow
endif
" }}}
" Syntax: {{{
if s:configuration.enable_italic
call sonokai#highlight('Type', s:palette.blue, s:palette.none, 'italic')
call sonokai#highlight('Structure', s:palette.blue, s:palette.none, 'italic')
call sonokai#highlight('StorageClass', s:palette.blue, s:palette.none, 'italic')
call sonokai#highlight('Identifier', s:palette.orange, s:palette.none, 'italic')
call sonokai#highlight('Constant', s:palette.orange, s:palette.none, 'italic')
else
call sonokai#highlight('Type', s:palette.blue, s:palette.none)
call sonokai#highlight('Structure', s:palette.blue, s:palette.none)
call sonokai#highlight('StorageClass', s:palette.blue, s:palette.none)
call sonokai#highlight('Identifier', s:palette.orange, s:palette.none)
call sonokai#highlight('Constant', s:palette.orange, s:palette.none)
endif
call sonokai#highlight('PreProc', s:palette.red, s:palette.none)
call sonokai#highlight('PreCondit', s:palette.red, s:palette.none)
call sonokai#highlight('Include', s:palette.red, s:palette.none)
call sonokai#highlight('Keyword', s:palette.red, s:palette.none)
call sonokai#highlight('Define', s:palette.red, s:palette.none)
call sonokai#highlight('Typedef', s:palette.red, s:palette.none)
call sonokai#highlight('Exception', s:palette.red, s:palette.none)
call sonokai#highlight('Conditional', s:palette.red, s:palette.none)
call sonokai#highlight('Repeat', s:palette.red, s:palette.none)
call sonokai#highlight('Statement', s:palette.red, s:palette.none)
call sonokai#highlight('Macro', s:palette.purple, s:palette.none)
call sonokai#highlight('Error', s:palette.red, s:palette.none)
call sonokai#highlight('Label', s:palette.purple, s:palette.none)
call sonokai#highlight('Special', s:palette.purple, s:palette.none)
call sonokai#highlight('SpecialChar', s:palette.purple, s:palette.none)
call sonokai#highlight('Boolean', s:palette.purple, s:palette.none)
call sonokai#highlight('String', s:palette.yellow, s:palette.none)
call sonokai#highlight('Character', s:palette.yellow, s:palette.none)
call sonokai#highlight('Number', s:palette.purple, s:palette.none)
call sonokai#highlight('Float', s:palette.purple, s:palette.none)
call sonokai#highlight('Function', s:palette.green, s:palette.none)
call sonokai#highlight('Operator', s:palette.red, s:palette.none)
call sonokai#highlight('Title', s:palette.red, s:palette.none, 'bold')
call sonokai#highlight('Tag', s:palette.orange, s:palette.none)
call sonokai#highlight('Delimiter', s:palette.fg, s:palette.none)
call sonokai#highlight('Todo', s:palette.bg0, s:palette.blue, 'bold')
if s:configuration.disable_italic_comment
call sonokai#highlight('Comment', s:palette.grey, s:palette.none)
call sonokai#highlight('SpecialComment', s:palette.grey, s:palette.none)
else
call sonokai#highlight('Comment', s:palette.grey, s:palette.none, 'italic')
call sonokai#highlight('SpecialComment', s:palette.grey, s:palette.none, 'italic')
endif
call sonokai#highlight('Ignore', s:palette.grey, s:palette.none)
call sonokai#highlight('Underlined', s:palette.none, s:palette.none, 'underline')
" }}}
" Predefined Highlight Groups: {{{
call sonokai#highlight('Fg', s:palette.fg, s:palette.none)
call sonokai#highlight('Grey', s:palette.grey, s:palette.none)
call sonokai#highlight('Red', s:palette.red, s:palette.none)
call sonokai#highlight('Orange', s:palette.orange, s:palette.none)
call sonokai#highlight('Yellow', s:palette.yellow, s:palette.none)
call sonokai#highlight('Green', s:palette.green, s:palette.none)
call sonokai#highlight('Blue', s:palette.blue, s:palette.none)
call sonokai#highlight('Purple', s:palette.purple, s:palette.none)
if s:configuration.enable_italic
call sonokai#highlight('RedItalic', s:palette.red, s:palette.none, 'italic')
call sonokai#highlight('OrangeItalic', s:palette.orange, s:palette.none, 'italic')
call sonokai#highlight('YellowItalic', s:palette.yellow, s:palette.none, 'italic')
call sonokai#highlight('GreenItalic', s:palette.green, s:palette.none, 'italic')
call sonokai#highlight('BlueItalic', s:palette.blue, s:palette.none, 'italic')
call sonokai#highlight('PurpleItalic', s:palette.purple, s:palette.none, 'italic')
else
call sonokai#highlight('RedItalic', s:palette.red, s:palette.none)
call sonokai#highlight('OrangeItalic', s:palette.orange, s:palette.none)
call sonokai#highlight('YellowItalic', s:palette.yellow, s:palette.none)
call sonokai#highlight('GreenItalic', s:palette.green, s:palette.none)
call sonokai#highlight('BlueItalic', s:palette.blue, s:palette.none)
call sonokai#highlight('PurpleItalic', s:palette.purple, s:palette.none)
endif
call sonokai#highlight('RedSign', s:palette.red, s:palette.none)
call sonokai#highlight('OrangeSign', s:palette.orange, s:palette.none)
call sonokai#highlight('YellowSign', s:palette.yellow, s:palette.none)
call sonokai#highlight('GreenSign', s:palette.green, s:palette.none)
call sonokai#highlight('BlueSign', s:palette.blue, s:palette.none)
call sonokai#highlight('PurpleSign', s:palette.purple, s:palette.none)
if s:configuration.diagnostic_text_highlight
call sonokai#highlight('ErrorText', s:palette.none, s:palette.diff_red, 'undercurl', s:palette.red)
call sonokai#highlight('WarningText', s:palette.none, s:palette.diff_yellow, 'undercurl', s:palette.yellow)
call sonokai#highlight('InfoText', s:palette.none, s:palette.diff_blue, 'undercurl', s:palette.blue)
call sonokai#highlight('HintText', s:palette.none, s:palette.diff_green, 'undercurl', s:palette.green)
else
call sonokai#highlight('ErrorText', s:palette.none, s:palette.none, 'undercurl', s:palette.red)
call sonokai#highlight('WarningText', s:palette.none, s:palette.none, 'undercurl', s:palette.yellow)
call sonokai#highlight('InfoText', s:palette.none, s:palette.none, 'undercurl', s:palette.blue)
call sonokai#highlight('HintText', s:palette.none, s:palette.none, 'undercurl', s:palette.green)
endif
if s:configuration.diagnostic_line_highlight
call sonokai#highlight('ErrorLine', s:palette.none, s:palette.diff_red)
call sonokai#highlight('WarningLine', s:palette.none, s:palette.diff_yellow)
call sonokai#highlight('InfoLine', s:palette.none, s:palette.diff_blue)
call sonokai#highlight('HintLine', s:palette.none, s:palette.diff_green)
else
highlight clear ErrorLine
highlight clear WarningLine
highlight clear InfoLine
highlight clear HintLine
endif
if s:configuration.diagnostic_virtual_text ==# 'grey'
highlight! link VirtualTextWarning Grey
highlight! link VirtualTextError Grey
highlight! link VirtualTextInfo Grey
highlight! link VirtualTextHint Grey
elseif s:configuration.diagnostic_virtual_text ==# 'colored'
highlight! link VirtualTextWarning Yellow
highlight! link VirtualTextError Red
highlight! link VirtualTextInfo Blue
highlight! link VirtualTextHint Green
else
call sonokai#highlight('VirtualTextWarning', s:palette.yellow, s:palette.diff_yellow)
call sonokai#highlight('VirtualTextError', s:palette.red, s:palette.diff_red)
call sonokai#highlight('VirtualTextInfo', s:palette.blue, s:palette.diff_blue)
call sonokai#highlight('VirtualTextHint', s:palette.green, s:palette.diff_green)
endif
call sonokai#highlight('ErrorFloat', s:palette.red, s:palette.none)
call sonokai#highlight('WarningFloat', s:palette.yellow, s:palette.none)
call sonokai#highlight('InfoFloat', s:palette.blue, s:palette.none)
call sonokai#highlight('HintFloat', s:palette.green, s:palette.none)
if &diff
call sonokai#highlight('CurrentWord', s:palette.bg0, s:palette.green)
elseif s:configuration.current_word ==# 'grey background'
call sonokai#highlight('CurrentWord', s:palette.none, s:palette.bg2)
elseif s:configuration.current_word ==# 'high contrast background'
call sonokai#highlight('CurrentWord', s:palette.none, s:palette.bg4)
else
call sonokai#highlight('CurrentWord', s:palette.none, s:palette.none, s:configuration.current_word)
endif
if s:configuration.inlay_hints_background ==# 'none'
highlight! link InlayHints LineNr
else
call sonokai#highlight('InlayHints', s:palette.grey, s:palette.bg_dim)
endif
" Define a color for each LSP item kind to create highlights for nvim-cmp, aerial.nvim, nvim-navic and coc.nvim
let g:sonokai_lsp_kind_color = [
\ ["Array", "Yellow"],
\ ["Boolean", "Yellow"],
\ ["Class", "Blue"],
\ ["Color", "Yellow"],
\ ["Constant", "Orange"],
\ ["Constructor", "Green"],
\ ["Default", "Yellow"],
\ ["Enum", "Blue"],
\ ["EnumMember", "Purple"],
\ ["Event", "Yellow"],
\ ["Field", "Green"],
\ ["File", "Green"],
\ ["Folder", "Yellow"],
\ ["Function", "Green"],
\ ["Interface", "Blue"],
\ ["Key", "Red"],
\ ["Keyword", "Red"],
\ ["Method", "Green"],
\ ["Module", "Blue"],
\ ["Namespace", "Red"],
\ ["Null", "Yellow"],
\ ["Number", "Yellow"],
\ ["Object", "Yellow"],
\ ["Operator", "Red"],
\ ["Package", "Red"],
\ ["Property", "Orange"],
\ ["Reference", "Yellow"],
\ ["Snippet", "Yellow"],
\ ["String", "Yellow"],
\ ["Struct", "Blue"],
\ ["Text", "Fg"],
\ ["TypeParameter", "Blue"],
\ ["Unit", "Purple"],
\ ["Value", "Purple"],
\ ["Variable", "Orange"],
\ ]
" }}}
" }}}
" Terminal: {{{
if ((has('termguicolors') && &termguicolors) || has('gui_running')) && !s:configuration.disable_terminal_colors
" Definition
let s:terminal = {
\ 'black': s:palette.black,
\ 'red': s:palette.red,
\ 'yellow': s:palette.yellow,
\ 'green': s:palette.green,
\ 'cyan': s:palette.orange,
\ 'blue': s:palette.blue,
\ 'purple': s:palette.purple,
\ 'white': s:palette.fg,
\ 'bright_black': s:palette.grey,
\ }
" 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.bright_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 {{{
call sonokai#highlight('TSStrong', s:palette.none, s:palette.none, 'bold')
call sonokai#highlight('TSEmphasis', s:palette.none, s:palette.none, 'italic')
call sonokai#highlight('TSUnderline', s:palette.none, s:palette.none, 'underline')
call sonokai#highlight('TSNote', s:palette.bg0, s:palette.green, 'bold')
call sonokai#highlight('TSWarning', s:palette.bg0, s:palette.yellow, 'bold')
call sonokai#highlight('TSDanger', s:palette.bg0, s:palette.red, 'bold')
highlight! link TSAnnotation BlueItalic
highlight! link TSAttribute BlueItalic
highlight! link TSBoolean Purple
highlight! link TSCharacter Yellow
highlight! link TSCharacterSpecial SpecialChar
highlight! link TSComment Comment
highlight! link TSConditional Red
highlight! link TSConstBuiltin PurpleItalic
highlight! link TSConstMacro PurpleItalic
highlight! link TSConstant Fg
highlight! link TSConstructor Green
highlight! link TSDebug Debug
highlight! link TSDefine Define
highlight! link TSEnvironment Macro
highlight! link TSEnvironmentName Type
highlight! link TSError Error
highlight! link TSException Red
highlight! link TSField Orange
highlight! link TSFloat Purple
highlight! link TSFuncBuiltin Green
highlight! link TSFuncMacro Green
highlight! link TSFunction Green
highlight! link TSFunctionCall Green
highlight! link TSInclude Red
highlight! link TSKeyword Red
highlight! link TSKeywordFunction Red
highlight! link TSKeywordOperator Red
highlight! link TSKeywordReturn Red
highlight! link TSLabel Red
highlight! link TSLiteral String
highlight! link TSMath Yellow
highlight! link TSMethod Green
highlight! link TSMethodCall Green
highlight! link TSNamespace BlueItalic
highlight! link TSNone Fg
highlight! link TSNumber Purple
highlight! link TSOperator Red
highlight! link TSParameter Fg
highlight! link TSParameterReference Fg
highlight! link TSPreProc PreProc
highlight! link TSProperty Orange
highlight! link TSPunctBracket Grey
highlight! link TSPunctDelimiter Grey
highlight! link TSPunctSpecial Yellow
highlight! link TSRepeat Red
highlight! link TSStorageClass Red
highlight! link TSStorageClassLifetime Red
highlight! link TSStrike Grey
highlight! link TSString Yellow
highlight! link TSStringEscape Green
highlight! link TSStringRegex Green
highlight! link TSStringSpecial SpecialChar
highlight! link TSSymbol Fg
highlight! link TSTag BlueItalic
highlight! link TSTagAttribute Green
highlight! link TSTagDelimiter Red
highlight! link TSText Green
highlight! link TSTextReference Constant
highlight! link TSTitle Title
highlight! link TSTodo Todo
highlight! link TSType BlueItalic
highlight! link TSTypeBuiltin BlueItalic
highlight! link TSTypeDefinition BlueItalic
highlight! link TSTypeQualifier Red
call sonokai#highlight('TSURI', s:palette.blue, s:palette.none, 'underline')
highlight! link TSVariable Fg
highlight! link TSVariableBuiltin PurpleItalic
if has('nvim-0.8')
highlight! link @annotation TSAnnotation
highlight! link @attribute TSAttribute
highlight! link @boolean TSBoolean
highlight! link @character TSCharacter
highlight! link @character.special TSCharacterSpecial
highlight! link @comment TSComment
highlight! link @comment.error TSDanger
highlight! link @comment.note TSNote
highlight! link @comment.todo TSTodo
highlight! link @comment.warning TSWarning
highlight! link @conceal Grey
highlight! link @conditional TSConditional
highlight! link @constant TSConstant
highlight! link @constant.builtin TSConstBuiltin
highlight! link @constant.macro TSConstMacro
highlight! link @constructor TSConstructor
highlight! link @debug TSDebug
highlight! link @define TSDefine
highlight! link @diff.delta diffChanged
highlight! link @diff.minus diffRemoved
highlight! link @diff.plus diffAdded
highlight! link @error TSError " This has been removed from nvim-treesitter
highlight! link @exception TSException
highlight! link @field TSField
highlight! link @float TSFloat
highlight! link @function TSFunction
highlight! link @function.builtin TSFuncBuiltin
highlight! link @function.call TSFunctionCall
highlight! link @function.macro TSFuncMacro
highlight! link @function.method TSMethod
highlight! link @function.method.call TSMethodCall
highlight! link @include TSInclude
highlight! link @keyword TSKeyword
highlight! link @keyword.conditional TSConditional
highlight! link @keyword.debug TSDebug
highlight! link @keyword.directive TSPreProc
highlight! link @keyword.directive.define TSDefine
highlight! link @keyword.exception TSException
highlight! link @keyword.function TSKeywordFunction
highlight! link @keyword.import TSInclude
highlight! link @keyword.operator TSKeywordOperator
highlight! link @keyword.repeat TSRepeat
highlight! link @keyword.return TSKeywordReturn
highlight! link @keyword.storage TSStorageClass
highlight! link @label TSLabel
highlight! link @markup.emphasis TSEmphasis
highlight! link @markup.environment TSEnvironment
highlight! link @markup.environment.name TSEnvironmentName
highlight! link @markup.heading TSTitle
highlight! link @markup.link TSTextReference
highlight! link @markup.link.label TSStringSpecial
highlight! link @markup.link.url TSURI
highlight! link @markup.list TSPunctSpecial
highlight! link @markup.list.checked Green
highlight! link @markup.list.unchecked Ignore
highlight! link @markup.math TSMath
highlight! link @markup.note TSNote
highlight! link @markup.quote Grey
highlight! link @markup.raw TSLiteral
highlight! link @markup.strike TSStrike
highlight! link @markup.strong TSStrong
highlight! link @markup.underline TSUnderline
highlight! link @math TSMath
highlight! link @method TSMethod
highlight! link @method.call TSMethodCall
highlight! link @module TSNamespace
highlight! link @namespace TSNamespace
highlight! link @none TSNone
highlight! link @number TSNumber
highlight! link @number.float TSFloat
highlight! link @operator TSOperator
highlight! link @parameter TSParameter
highlight! link @parameter.reference TSParameterReference
highlight! link @preproc TSPreProc
highlight! link @property TSProperty
highlight! link @punctuation.bracket TSPunctBracket
highlight! link @punctuation.delimiter TSPunctDelimiter
highlight! link @punctuation.special TSPunctSpecial
highlight! link @repeat TSRepeat
highlight! link @storageclass TSStorageClass
highlight! link @storageclass.lifetime TSStorageClassLifetime
highlight! link @strike TSStrike
highlight! link @string TSString
highlight! link @string.escape TSStringEscape
highlight! link @string.regex TSStringRegex
highlight! link @string.regexp TSStringRegex
highlight! link @string.special TSStringSpecial
highlight! link @string.special.symbol TSSymbol
highlight! link @string.special.uri TSURI
highlight! link @symbol TSSymbol
highlight! link @tag TSTag
highlight! link @tag.attribute TSTagAttribute
highlight! link @tag.delimiter TSTagDelimiter
highlight! link @text TSText
highlight! link @text.danger TSDanger
highlight! link @text.diff.add diffAdded
highlight! link @text.diff.delete diffRemoved
highlight! link @text.emphasis TSEmphasis
highlight! link @text.environment TSEnvironment
highlight! link @text.environment.name TSEnvironmentName
highlight! link @text.literal TSLiteral
highlight! link @text.math TSMath
highlight! link @text.note TSNote
highlight! link @text.reference TSTextReference
highlight! link @text.strike TSStrike
highlight! link @text.strong TSStrong
highlight! link @text.title TSTitle
highlight! link @text.todo TSTodo
highlight! link @text.todo.checked Green
highlight! link @text.todo.unchecked Ignore
highlight! link @text.underline TSUnderline
highlight! link @text.uri TSURI
highlight! link @text.warning TSWarning
highlight! link @todo TSTodo
highlight! link @type TSType
highlight! link @type.builtin TSTypeBuiltin
highlight! link @type.definition TSTypeDefinition
highlight! link @type.qualifier TSTypeQualifier
highlight! link @uri TSURI
highlight! link @variable TSVariable
highlight! link @variable.builtin TSVariableBuiltin
highlight! link @variable.member TSField
highlight! link @variable.parameter TSParameter
endif
if has('nvim-0.9')
highlight! link @lsp.type.class TSType
highlight! link @lsp.type.comment TSComment
highlight! link @lsp.type.decorator TSFunction
highlight! link @lsp.type.enum TSType
highlight! link @lsp.type.enumMember TSProperty
highlight! link @lsp.type.events TSLabel
highlight! link @lsp.type.function TSFunction
highlight! link @lsp.type.interface TSType
highlight! link @lsp.type.keyword TSKeyword
highlight! link @lsp.type.macro TSConstMacro
highlight! link @lsp.type.method TSMethod
highlight! link @lsp.type.modifier TSTypeQualifier
highlight! link @lsp.type.namespace TSNamespace
highlight! link @lsp.type.number TSNumber
highlight! link @lsp.type.operator TSOperator
highlight! link @lsp.type.parameter TSParameter
highlight! link @lsp.type.property TSProperty
highlight! link @lsp.type.regexp TSStringRegex
highlight! link @lsp.type.string TSString
highlight! link @lsp.type.struct TSType
highlight! link @lsp.type.type TSType
highlight! link @lsp.type.typeParameter TSTypeDefinition
highlight! link @lsp.type.variable TSVariable
call sonokai#highlight('DiagnosticUnnecessary', s:palette.grey, s:palette.none)
endif
highlight! link TSModuleInfoGood Green
highlight! link TSModuleInfoBad Red
" }}}
" github/copilot.vim {{{
highlight! link CopilotSuggestion Grey
" }}}
" neoclide/coc.nvim {{{
call sonokai#highlight('CocHoverRange', s:palette.none, s:palette.none, 'bold,underline')
call sonokai#highlight('CocSearch', s:palette.green, s:palette.none, 'bold')
call sonokai#highlight('CocPumSearch', s:palette.green, s:palette.none, 'bold')
call sonokai#highlight('CocMarkdownHeader', s:palette.blue, s:palette.none, 'bold')
call sonokai#highlight('CocMarkdownLink', s:palette.green, s:palette.none, 'underline')
highlight! link CocMarkdownCode Green
highlight! link CocPumShortcut Grey
highlight! link CocPumVirtualText Grey
highlight! link CocPumMenu Pmenu
highlight! link CocMenuSel PmenuSel
highlight! link CocDisabled Grey
highlight! link CocSnippetVisual DiffAdd
highlight! link CocInlayHint InlayHints
highlight! link CocNotificationProgress Green
highlight! link CocNotificationButton PmenuSel
highlight! link CocSemClass TSType
highlight! link CocSemEnum TSType
highlight! link CocSemInterface TSType
highlight! link CocSemStruct TSType
highlight! link CocSemTypeParameter TSType
highlight! link CocSemVariable TSVariable
highlight! link CocSemEnumMember TSProperty
highlight! link CocSemEvent TSLabel
highlight! link CocSemModifier TSOperator
highlight! link CocErrorFloat ErrorFloat
highlight! link CocWarningFloat WarningFloat
highlight! link CocInfoFloat InfoFloat
highlight! link CocHintFloat HintFloat
highlight! link CocFloating NormalFloat
highlight! link CocFloatDividingLine Grey
highlight! link CocErrorHighlight ErrorText
highlight! link CocWarningHighlight WarningText
highlight! link CocInfoHighlight InfoText
highlight! link CocHintHighlight HintText
highlight! link CocHighlightText CurrentWord
highlight! link CocHoverRange CurrentWord
highlight! link CocErrorSign RedSign
highlight! link CocWarningSign YellowSign
highlight! link CocInfoSign BlueSign
highlight! link CocHintSign GreenSign
highlight! link CocWarningVirtualText VirtualTextWarning
highlight! link CocErrorVirtualText VirtualTextError
highlight! link CocInfoVirtualText VirtualTextInfo
highlight! link CocHintVirtualText VirtualTextHint
highlight! link CocErrorLine ErrorLine
highlight! link CocWarningLine WarningLine
highlight! link CocInfoLine InfoLine
highlight! link CocHintLine HintLine
highlight! link CocCodeLens Grey
highlight! link CocFadeOut Grey
highlight! link CocStrikeThrough Grey
highlight! link CocListMode StatusLine
highlight! link CocListPath StatusLine
highlight! link CocSelectedText Red
highlight! link CocListsLine Fg
highlight! link CocListsDesc 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
" }}}
" prabirshrestha/vim-lsp {{{
highlight! link LspErrorVirtual VirtualTextError
highlight! link LspWarningVirtual VirtualTextWarning
highlight! link LspInformationVirtual VirtualTextInfo
highlight! link LspHintVirtual VirtualTextHint
highlight! link LspErrorHighlight ErrorText
highlight! link LspWarningHighlight WarningText
highlight! link LspInformationHighlight InfoText
highlight! link LspHintHighlight HintText
highlight! link lspReference CurrentWord
highlight! link lspInlayHintsType InlayHints
highlight! link lspInlayHintsParameter InlayHints
highlight! link LspSemanticType TSType
highlight! link LspSemanticClass TSType
highlight! link LspSemanticEnum TSType
highlight! link LspSemanticInterface TSType
highlight! link LspSemanticStruct TSType
highlight! link LspSemanticTypeParameter TSType
highlight! link LspSemanticParameter TSParameter
highlight! link LspSemanticVariable TSVariable
highlight! link LspSemanticProperty TSProperty
highlight! link LspSemanticEnumMember TSProperty
highlight! link LspSemanticEvents TSLabel
highlight! link LspSemanticFunction TSFunction
highlight! link LspSemanticMethod TSMethod
highlight! link LspSemanticKeyword TSKeyword
highlight! link LspSemanticModifier TSOperator
highlight! link LspSemanticComment TSComment
highlight! link LspSemanticString TSString
highlight! link LspSemanticNumber TSNumber
highlight! link LspSemanticRegexp TSStringRegex
highlight! link LspSemanticOperator TSOperator
" }}}
" ycm-core/YouCompleteMe {{{
highlight! link YcmErrorSign RedSign
highlight! link YcmWarningSign YellowSign
highlight! link YcmErrorLine ErrorLine
highlight! link YcmWarningLine WarningLine
highlight! link YcmErrorSection ErrorText
highlight! link YcmWarningSection WarningText
highlight! link YcmInlayHint InlayHints
highlight! link YcmErrorText VirtualTextError
highlight! link YcmWarningText VirtualTextWarning
if !has('nvim') && has('textprop') && !exists('g:YCM_HIGHLIGHT_GROUP')
let g:YCM_HIGHLIGHT_GROUP = {
\ 'typeParameter': 'TSType',
\ 'parameter': 'TSParameter',
\ 'variable': 'TSVariable',
\ 'property': 'TSProperty',
\ 'enumMember': 'TSVariableBuiltin',
\ 'event': 'TSLabel',
\ 'member': 'TSVariable',
\ 'method': 'TSMethod',
\ 'class': 'TSType',
\ 'namespace': 'TSNamespace',
\ }
for tokenType in keys( g:YCM_HIGHLIGHT_GROUP )
try
call prop_type_add( 'YCM_HL_' . tokenType,
\ { 'highlight': g:YCM_HIGHLIGHT_GROUP[ tokenType ] } )
catch
endtry
endfor
endif
" }}}
" dense-analysis/ale {{{
highlight! link ALEError ErrorText
highlight! link ALEWarning WarningText
highlight! link ALEInfo InfoText
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 VirtualTextError
highlight! link ALEVirtualTextWarning VirtualTextWarning
highlight! link ALEVirtualTextInfo VirtualTextInfo
highlight! link ALEVirtualTextStyleError VirtualTextHint
highlight! link ALEVirtualTextStyleWarning VirtualTextHint
" }}}
" neomake/neomake {{{
highlight! link NeomakeError ErrorText
highlight! link NeomakeWarning WarningText
highlight! link NeomakeInfo InfoText
highlight! link NeomakeMessage HintText
highlight! link NeomakeErrorSign RedSign
highlight! link NeomakeWarningSign YellowSign
highlight! link NeomakeInfoSign BlueSign
highlight! link NeomakeMessageSign GreenSign
highlight! link NeomakeVirtualtextError VirtualTextError
highlight! link NeomakeVirtualtextWarning VirtualTextWarning
highlight! link NeomakeVirtualtextInfo VirtualTextInfo
highlight! link NeomakeVirtualtextMessag VirtualTextHint
" }}}
" vim-syntastic/syntastic {{{
highlight! link SyntasticError ErrorText
highlight! link SyntasticWarning WarningText
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 = 'one'
endif
call sonokai#highlight('Lf_hl_match', s:palette.green, s:palette.none, 'bold')
call sonokai#highlight('Lf_hl_match0', s:palette.green, s:palette.none, 'bold')
call sonokai#highlight('Lf_hl_match1', s:palette.blue, s:palette.none, 'bold')
call sonokai#highlight('Lf_hl_match2', s:palette.red, s:palette.none, 'bold')
call sonokai#highlight('Lf_hl_match3', s:palette.yellow, s:palette.none, 'bold')
call sonokai#highlight('Lf_hl_match4', s:palette.purple, s:palette.none, 'bold')
call sonokai#highlight('Lf_hl_matchRefine', s:palette.yellow, s:palette.none, 'bold')
call sonokai#highlight('Lf_hl_popup_normalMode', s:palette.bg0, s:palette.blue, 'bold')
call sonokai#highlight('Lf_hl_popup_inputMode', s:palette.bg0, s:palette.green, 'bold')
call sonokai#highlight('Lf_hl_popup_category', s:palette.fg, s:palette.bg4)
call sonokai#highlight('Lf_hl_popup_nameOnlyMode', s:palette.fg, s:palette.bg3)
call sonokai#highlight('Lf_hl_popup_fullPathMode', s:palette.fg, s:palette.bg3)
call sonokai#highlight('Lf_hl_popup_fuzzyMode', s:palette.fg, s:palette.bg3)
call sonokai#highlight('Lf_hl_popup_regexMode', s:palette.fg, s:palette.bg3)
call sonokai#highlight('Lf_hl_popup_lineInfo', s:palette.bg0, s:palette.blue)
call sonokai#highlight('Lf_hl_popup_total', s:palette.bg0, s:palette.red)
call sonokai#highlight('Lf_hl_popup_cursor', s:palette.bg0, s:palette.blue)
highlight! link Lf_hl_cursorline Fg
highlight! link Lf_hl_selection DiffAdd
highlight! link Lf_hl_rgHighlight Visual
highlight! link Lf_hl_gtagsHighlight Visual
highlight! link Lf_hl_popup_inputText Pmenu
highlight! link Lf_hl_popup_window Pmenu
highlight! link Lf_hl_popup_prompt Blue
highlight! link Lf_hl_popup_cwd Pmenu
highlight! link Lf_hl_popup_blank Lf_hl_popup_window
highlight! link Lf_hl_popup_spin Purple
" }}}
" liuchengxu/vim-clap {{{
call sonokai#highlight('ClapSelected', s:palette.red, s:palette.none, 'bold')
call sonokai#highlight('ClapCurrentSelection', s:palette.none, s:palette.bg0, 'bold')
call sonokai#highlight('ClapSpinner', s:palette.blue, s:palette.bg2, 'bold')
call sonokai#highlight('ClapBlines', s:palette.fg, s:palette.none)
call sonokai#highlight('ClapProviderId', s:palette.fg, s:palette.none, 'bold')
call sonokai#highlight('ClapMatches1', s:palette.red, s:palette.none, 'bold')
call sonokai#highlight('ClapMatches2', s:palette.orange, s:palette.none, 'bold')
call sonokai#highlight('ClapMatches3', s:palette.yellow, s:palette.none, 'bold')
call sonokai#highlight('ClapMatches4', s:palette.blue, s:palette.none, 'bold')
call sonokai#highlight('ClapMatches5', s:palette.purple, s:palette.none, 'bold')
call sonokai#highlight('ClapFuzzyMatches', s:palette.green, s:palette.none, 'bold')
call sonokai#highlight('ClapNoMatchesFound', s:palette.red, s:palette.none, 'bold')
highlight! link ClapInput Pmenu
highlight! link ClapDisplay Pmenu
highlight! link ClapPreview Pmenu
highlight! link ClapFuzzyMatches1 ClapFuzzyMatches
highlight! link ClapFuzzyMatches2 ClapFuzzyMatches
highlight! link ClapFuzzyMatches3 ClapFuzzyMatches
highlight! link ClapFuzzyMatches4 ClapFuzzyMatches
highlight! link ClapFuzzyMatches5 ClapFuzzyMatches
highlight! link ClapFuzzyMatches6 ClapFuzzyMatches
highlight! link ClapFuzzyMatches7 ClapFuzzyMatches
highlight! link ClapFuzzyMatches8 ClapFuzzyMatches
highlight! link ClapFuzzyMatches9 ClapFuzzyMatches
highlight! link ClapFuzzyMatches10 ClapFuzzyMatches
highlight! link ClapFuzzyMatches11 ClapFuzzyMatches
highlight! link ClapFuzzyMatches12 ClapFuzzyMatches
highlight! link ClapBlinesLineNr Grey
highlight! link ClapProviderColon ClapBlines
highlight! link ClapProviderAbout ClapBlines
highlight! link ClapFile Fg
highlight! link ClapSearchText ClapFuzzyMatches
" }}}
" 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', 'Green'],
\ 'info': ['fg', 'Yellow'],
\ 'border': ['fg', 'Grey'],
\ 'prompt': ['fg', 'Red'],
\ 'pointer': ['fg', 'Blue'],
\ 'marker': ['fg', 'Blue'],
\ 'spinner': ['fg', 'Yellow'],
\ 'header': ['fg', 'Blue']
\ }
" }}}
" Shougo/denite.nvim{{{
call sonokai#highlight('deniteMatchedChar', s:palette.green, s:palette.none, 'bold')
call sonokai#highlight('deniteMatchedRange', s:palette.green, s:palette.none, 'bold,underline')
call sonokai#highlight('deniteInput', s:palette.green, s:palette.bg1, 'bold')
call sonokai#highlight('deniteStatusLineNumber', s:palette.purple, s:palette.bg1)
call sonokai#highlight('deniteStatusLinePath', s:palette.fg, s:palette.bg1)
highlight! link deniteSelectedLine Green
" }}}
" kien/ctrlp.vim{{{
call sonokai#highlight('CtrlPMatch', s:palette.green, s:palette.none, 'bold')
call sonokai#highlight('CtrlPPrtBase', s:palette.grey, s:palette.none)
call sonokai#highlight('CtrlPLinePre', s:palette.grey, s:palette.none)
call sonokai#highlight('CtrlPMode1', s:palette.blue, s:palette.bg1, 'bold')
call sonokai#highlight('CtrlPMode2', s:palette.bg1, s:palette.blue, 'bold')
call sonokai#highlight('CtrlPStats', s:palette.grey, s:palette.bg1, '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
highlight! link GitGutterAddLine DiffAdd
highlight! link GitGutterChangeLine DiffChange
highlight! link GitGutterDeleteLine DiffDelete
highlight! link GitGutterChangeDeleteLine DiffChange
highlight! link GitGutterAddLineNr Green
highlight! link GitGutterChangeLineNr Blue
highlight! link GitGutterDeleteLineNr Red
highlight! link GitGutterChangeDeleteLineNr Purple
" }}}
" mhinz/vim-signify {{{
highlight! link SignifySignAdd GreenSign
highlight! link SignifySignChange BlueSign
highlight! link SignifySignDelete RedSign
highlight! link SignifySignChangeDelete PurpleSign
highlight! link SignifyLineAdd DiffAdd
highlight! link SignifyLineChange DiffChange
highlight! link SignifyLineChangeDelete DiffChange
highlight! link SignifyLineDelete DiffDelete
" }}}
" andymass/vim-matchup {{{
call sonokai#highlight('MatchParenCur', s:palette.none, s:palette.none, 'bold')
call sonokai#highlight('MatchWord', s:palette.none, s:palette.none, 'underline')
call sonokai#highlight('MatchWordCur', s:palette.none, s:palette.none, 'underline')
" }}}
" easymotion/vim-easymotion {{{
highlight! link EasyMotionTarget Search
highlight! link EasyMotionShade Grey
" }}}