Skip to content

Commit 04100b3

Browse files
committed
style: sort groups
Try to be consistent with ordering, function calls on top, links on bottom. Sorted.
1 parent deaf2e5 commit 04100b3

File tree

1 file changed

+87
-88
lines changed

1 file changed

+87
-88
lines changed

colors/srcery.vim

Lines changed: 87 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -349,22 +349,28 @@ endfunction
349349
" -----------------------------------------------------------------------------
350350

351351
call s:HL('ColorColumn', s:none, s:xgray2)
352-
" call s:HL('NormalFloat', s:none, s:xgray1)
353-
call s:HL('NormalFloat', s:none, s:xgray1)
354352
call s:HL('Conceal', s:blue, s:none)
355353
call s:HL('Cursor', s:black, s:yellow)
356354
call s:HL('CursorLine', s:none, s:xgray2)
357355
call s:HL('CursorLineNr', s:yellow, g:srcery_bg)
356+
call s:HL('Directory', s:green, s:none, s:bold)
358357
call s:HL('ErrorMsg', s:bright_white, s:red)
359358
call s:HL('FoldColumn', s:bright_black, g:srcery_bg)
360359
call s:HL('Folded', s:bright_black, g:srcery_bg, s:italic)
361360
call s:HL('LineNr', s:bright_black)
361+
call s:HL('Link', s:white, s:none, s:underline)
362+
call s:HL('ModeMsg', s:yellow, s:none, s:bold)
363+
call s:HL('MoreMsg', s:yellow, s:none, s:bold)
364+
call s:HL('NonText', s:xgray4)
362365
call s:HL('Normal', s:bright_white, g:srcery_bg)
366+
call s:HL('NormalFloat', s:none, s:xgray1)
363367
call s:HL('Pmenu', s:bright_white, s:xgray2)
364368
call s:HL('PmenuSbar', s:none, g:srcery_bg)
365369
call s:HL('PmenuSel', s:bright_white, s:blue, s:bold)
366370
call s:HL('PmenuThumb', s:none, s:orange)
371+
call s:HL('Question', s:orange, s:none, s:bold)
367372
call s:HL('SignColumn', s:none, g:srcery_bg)
373+
call s:HL('SpecialKey', s:yellow)
368374
call s:HL('SpellBad', s:none, s:none, s:undercurl, s:blue)
369375
call s:HL('SpellCap', s:green, s:none, s:bold . s:italic)
370376
call s:HL('SpellLocal', s:none, s:none, s:undercurl, s:cyan)
@@ -373,25 +379,18 @@ call s:HL('StatusLine', s:bright_white, s:xgray2)
373379
call s:HL('StatusLineNC', s:bright_black, g:srcery_bg, s:underline)
374380
call s:HL('TabLineFill', s:bright_black, s:xgray2)
375381
call s:HL('TabLineSel', s:bright_white, s:xgray5)
382+
call s:HL('Title', s:green, s:none, s:bold)
376383
call s:HL('Underlined', s:none, s:none, s:underline)
377384
call s:HL('VertSplit', s:bright_white, g:srcery_bg)
385+
call s:HL('WarningMsg', s:red, s:none, s:bold)
378386
call s:HL('WildMenu', s:blue, g:srcery_bg, s:bold)
379387
call s:HL('WinSeparator', s:none, s:xgray1)
380388
hi! link CursorColumn CursorLine
381-
call s:HL('Directory', s:green, s:none, s:bold)
382389
hi! link iCursor Cursor
383390
hi! link lCursor Cursor
384-
call s:HL('ModeMsg', s:yellow, s:none, s:bold)
385-
call s:HL('MoreMsg', s:yellow, s:none, s:bold)
386-
call s:HL('NonText', s:xgray4)
387-
call s:HL('Question', s:orange, s:none, s:bold)
388-
call s:HL('SpecialKey', s:yellow)
389391
hi! link TabLine TabLineFill
390-
call s:HL('Title', s:green, s:none, s:bold)
391392
hi! link vCursor Cursor
392393
hi! link VisualNOS Visual
393-
call s:HL('WarningMsg', s:red, s:none, s:bold)
394-
call s:HL('Link', s:white, s:none, s:underline)
395394

396395
" Conditionals
397396
if g:srcery_inverse == 1
@@ -465,13 +464,13 @@ if has('nvim')
465464

466465
" Neovim Diagnostic
467466
call s:HL('DiagnosticError', s:bright_red)
468-
call s:HL('DiagnosticWarn', s:bright_yellow)
469-
call s:HL('DiagnosticInfo', s:bright_green)
470467
call s:HL('DiagnosticHint', s:bright_cyan)
468+
call s:HL('DiagnosticInfo', s:bright_green)
471469
call s:HL('DiagnosticUnderlineError', s:bright_red, s:none, s:undercurl)
472-
call s:HL('DiagnosticUnderlineWarn', s:bright_yellow, s:none, s:undercurl)
473-
call s:HL('DiagnosticUnderlineInfo', s:bright_green, s:none, s:undercurl)
474470
call s:HL('DiagnosticUnderlineHint', s:bright_cyan, s:none, s:undercurl)
471+
call s:HL('DiagnosticUnderlineInfo', s:bright_green, s:none, s:undercurl)
472+
call s:HL('DiagnosticUnderlineWarn', s:bright_yellow, s:none, s:undercurl)
473+
call s:HL('DiagnosticWarn', s:bright_yellow)
475474

476475
" Neovim Support
477476
call s:HL('healthError', s:red)
@@ -484,44 +483,44 @@ endif
484483
" Base groups: {{{
485484
" -----------------------------------------------------------------------------
486485

486+
call s:HL('Boolean', s:bright_magenta)
487+
call s:HL('Character', s:green)
487488
call s:HL('Comment', s:bright_black, s:none, s:italic)
488489
call s:HL('Conceal', s:none, s:none)
489-
call s:HL('Todo', s:bright_orange, s:none, s:bold . s:italic)
490-
call s:HL('Error', s:bright_white, s:red, s:bold)
491-
call s:HL('String', s:bright_green)
492-
call s:HL('Tag', s:blue)
493-
call s:HL('Special', s:blue)
494-
call s:HL('SpecialChar', s:yellow, s:none)
495-
call s:HL('SpecialComment', s:bright_cyan, s:none, s:italic)
496-
call s:HL('StorageClass', s:bright_blue)
497-
call s:HL('Statement', s:red)
498490
call s:HL('Conditional', s:red)
499-
call s:HL('Repeat', s:yellow)
500-
call s:HL('Label', s:bright_red)
491+
call s:HL('Constant', s:bright_magenta)
492+
call s:HL('Decorator', s:bright_orange)
493+
call s:HL('Define', s:orange)
494+
call s:HL('Delimiter', s:bright_black)
495+
call s:HL('Error', s:bright_white, s:red, s:bold)
501496
call s:HL('Exception', s:red)
502-
call s:HL('Operator', s:white)
503-
call s:HL('Keyword', s:red)
504-
call s:HL('Identifier', s:bright_white)
497+
call s:HL('Float', s:bright_magenta)
505498
call s:HL('Function', s:yellow)
506-
call s:HL('PreProc', s:cyan)
499+
call s:HL('Identifier', s:bright_white)
507500
call s:HL('Include', s:cyan)
508-
call s:HL('Define', s:orange)
509-
call s:HL('PreCondit', s:cyan)
510-
call s:HL('Constant', s:bright_magenta)
511-
call s:HL('Character', s:green)
512-
call s:HL('Boolean', s:bright_magenta)
501+
call s:HL('Keyword', s:red)
502+
call s:HL('Label', s:bright_red)
503+
call s:HL('Member', s:bright_blue)
513504
call s:HL('Number', s:bright_magenta)
514-
call s:HL('Float', s:bright_magenta)
515-
call s:HL('Type', s:bright_blue, s:none, s:italic)
505+
call s:HL('Operator', s:white)
506+
call s:HL('PreCondit', s:cyan)
507+
call s:HL('PreProc', s:cyan)
508+
call s:HL('Repeat', s:yellow)
509+
call s:HL('Special', s:blue)
510+
call s:HL('SpecialChar', s:yellow, s:none)
511+
call s:HL('SpecialComment', s:bright_cyan, s:none, s:italic)
512+
call s:HL('Statement', s:red)
513+
call s:HL('StorageClass', s:bright_blue)
514+
call s:HL('String', s:bright_green)
516515
call s:HL('Structure', s:cyan)
516+
call s:HL('Tag', s:blue)
517+
call s:HL('Todo', s:bright_orange, s:none, s:bold . s:italic)
518+
call s:HL('Type', s:bright_blue, s:none, s:italic)
517519
call s:HL('Typedef', s:magenta)
518-
call s:HL('Delimiter', s:bright_black)
519-
call s:HL('Decorator', s:bright_orange)
520520
hi! link Annotation Decorator
521521
hi! link Macro Define
522522
hi! link PreCondit PreProc
523523
hi! link Variable Identifier
524-
call s:HL('Member', s:bright_blue)
525524

526525
" heading groups
527526
call s:HL('SrceryH1', s:bright_blue, s:xgray1, s:bold)
@@ -537,50 +536,50 @@ call s:HL('SrceryH6', s:bright_magenta, s:xgray1, s:bold)
537536

538537
" nvim-treesitter
539538
if has('nvim')
539+
hi! link @delimiter Delimiter
540+
hi! link @markup.heading.1.markdown SrceryH1
541+
hi! link @markup.heading.2.markdown SrceryH2
542+
hi! link @markup.heading.3.markdown SrceryH3
543+
hi! link @markup.heading.4.markdown SrceryH4
544+
hi! link @markup.heading.5.markdown SrceryH5
545+
hi! link @markup.heading.6.markdown SrceryH6
546+
hi! link @markup.link Link
547+
hi! link @markup.link.url String
548+
hi! link @tag.attribute TSTagAttribute
549+
hi! link @text.uri String
550+
hi! link @type Type
551+
hi! link @variable Variable
552+
hi! link @variable.member Member
540553
hi! link TSAnnotation Annotation
554+
hi! link TSAttribute Function
541555
hi! link TSConstBuiltin Constant
542556
hi! link TSConstructor Function
543557
hi! link TSEmphasis Italic
544558
hi! link TSFuncBuiltin Function
545-
hi! link TSAttribute Function
546559
hi! link TSFuncMacro Function
547560
hi! link TSStringRegex SpecialChar
548561
hi! link TSStrong Bold
549562
hi! link TSStructure Structure
563+
hi! link TSTagAttribute Function
550564
hi! link TSTagDelimiter TSTag
551565
hi! link TSUnderline Underline
552566
hi! link TSVariable Variable
553567
hi! link TSVariableBuiltin Keyword
554-
hi! link TSTagAttribute Function
555-
hi! link @tag.attribute TSTagAttribute
556-
hi! link @markup.link Link
557-
hi! link @markup.link.url String
558-
hi! link @markup.heading.1.markdown SrceryH1
559-
hi! link @markup.heading.2.markdown SrceryH2
560-
hi! link @markup.heading.3.markdown SrceryH3
561-
hi! link @markup.heading.4.markdown SrceryH4
562-
hi! link @markup.heading.5.markdown SrceryH5
563-
hi! link @markup.heading.6.markdown SrceryH6
564-
565-
hi! link @variable.member Member
566-
hi! link @type Type
567-
hi! link @delimiter Delimiter
568-
hi! link @text.uri String
569-
hi! link @variable Variable
570568
endif
571569

572570
" Diffs:
573-
call s:HL('DiffDelete', s:red)
574571
call s:HL('DiffAdd', s:green)
575572
call s:HL('DiffChange', s:cyan)
573+
call s:HL('DiffDelete', s:red)
576574
call s:HL('DiffText', s:yellow)
575+
577576
" legacy groups
578-
hi! link diffAdded DiffAdd
579-
hi! link diffRemoved DiffDelete
580-
hi! link diffChanged DiffChange
581577
call s:HL('diffFile', s:orange)
582-
call s:HL('diffNewFile', s:yellow)
583578
call s:HL('diffLine', s:blue)
579+
call s:HL('diffNewFile', s:yellow)
580+
hi! link diffAdded DiffAdd
581+
hi! link diffChanged DiffChange
582+
hi! link diffRemoved DiffDelete
584583

585584
" Vim:
586585
call s:HL('vimAugroup', s:green)
@@ -592,23 +591,23 @@ hi! link vimUserFunc Function
592591

593592
" CSS:
594593
call s:HL('cssAttributeSelector', s:green)
595-
hi! link cssDefinition Type
596594
call s:HL('cssStringQ', s:green)
597595
hi! link cssAttr Keyword
598596
hi! link cssBraces Delimiter
599-
hi! link cssFunctionComma Delimiter
600597
hi! link cssClassName cssDefinition
601598
hi! link cssColor Number
599+
hi! link cssDefinition Type
600+
hi! link cssFunctionComma Delimiter
602601
hi! link cssIdentifier Identifier
603602
hi! link cssProp cssDefinition
604603
hi! link cssPseudoClass cssDefinition
605604
hi! link cssPseudoClassId cssPseudoClass
606605
hi! link cssVendor Keyword
607606

608607
" Elixir
609-
hi! link elixirDocString Comment
610-
call s:HL('elixirStringDelimiter', s:green)
611608
call s:HL('elixirInterpolationDelimiter', s:cyan)
609+
call s:HL('elixirStringDelimiter', s:green)
610+
hi! link elixirDocString Comment
612611

613612
" Go
614613
call s:HL('goBuiltins', s:yellow)
@@ -638,9 +637,9 @@ hi! link htmlTagName htmlTag
638637

639638
" Java:
640639
call s:HL('javaDocTags', s:green)
640+
hi! link javaCommentTitle Comment
641641
hi! link javaCommentTitle vimCommentTitle
642642
hi! link javaParen Delimiter
643-
hi! link javaCommentTitle Comment
644643

645644
" JavaScript:
646645
hi! link javaScriptBraces Delimiter
@@ -693,10 +692,10 @@ hi! link mkdLineBreak Delimiter
693692
hi! link mkdRule Special
694693

695694
" MoonScript:
696-
hi! link moonSpecialOp Operator
697695
hi! link moonExtendedOp Operator
698696
hi! link moonFunction Function
699697
hi! link moonObject Structure
698+
hi! link moonSpecialOp Operator
700699

701700
" Python
702701
hi! link pythonBuiltin Type
@@ -753,10 +752,10 @@ hi! link xmlCdata Comment
753752
hi! link xmlCdataCdata xmlCdataStart
754753
hi! link xmlCdataEnd xmlCdataStart
755754
hi! link xmlEndTag xmlTagName
756-
hi! link xmlProcessingDelim Keyword
757-
hi! link xmlTagName Keyword
758755
hi! link xmlEqual Operator
756+
hi! link xmlProcessingDelim Keyword
759757
hi! link xmlTag Delimiter
758+
hi! link xmlTagName Keyword
760759
hi! link xmlTagName Statement
761760

762761
" }}}
@@ -768,9 +767,9 @@ if has('nvim')
768767
" for backward compatibility with neovim v0.5.x
769768
if has('nvim-0.5')
770769
hi! link LspDiagnosticsDefaultError DiagnosticError
771-
hi! link LspDiagnosticsDefaultWarning DiagnosticWarn
772-
hi! link LspDiagnosticsDefaultInformation DiagnosticInfo
773770
hi! link LspDiagnosticsDefaultHint DiagnosticHint
771+
hi! link LspDiagnosticsDefaultInformation DiagnosticInfo
772+
hi! link LspDiagnosticsDefaultWarning DiagnosticWarn
774773
hi! link LspDiagnosticsUnderlineError DiagnosticUnderlineError
775774
hi! link LspDiagnosticsUnderlineHint DiagnosticUnderlineHint
776775
hi! link LspDiagnosticsUnderlineInformation DiagnosticUnderlineInfo
@@ -846,50 +845,50 @@ let g:niji_light_colours = g:rbpt_colorpairs
846845
" GitGutter:
847846
call s:HL('GitGutterAdd', s:green)
848847
call s:HL('GitGutterChange', s:yellow)
849-
call s:HL('GitGutterDelete', s:red)
850848
call s:HL('GitGutterChangeDelete', s:yellow)
849+
call s:HL('GitGutterDelete', s:red)
851850

852851
" Ale:
853852
call s:HL('ALEError', s:none, s:none, s:undercurl, s:red)
854-
call s:HL('ALEWarning', s:none, s:none, s:undercurl, s:yellow)
855-
call s:HL('ALEInfo', s:none, s:none, s:undercurl, s:blue)
856853
call s:HL('ALEErrorSign', s:red)
857-
call s:HL('ALEWarningSign', s:yellow)
854+
call s:HL('ALEInfo', s:none, s:none, s:undercurl, s:blue)
858855
call s:HL('ALEInfoSign', s:blue)
856+
call s:HL('ALEWarning', s:none, s:none, s:undercurl, s:yellow)
857+
call s:HL('ALEWarningSign', s:yellow)
859858

860859
" vim-indent-guides:
861860
call s:HL('IndentGuidesEven', s:none, s:xgray3)
862861
call s:HL('IndentGuidesOdd', s:none, s:xgray4)
863862

864863
" vim-startify:
865-
hi! link StartifyNumber Statement
864+
hi! link StartifyBracket Comment
866865
hi! link StartifyFile Normal
866+
hi! link StartifyFooter Normal
867+
hi! link StartifyHeader Type
868+
hi! link StartifyNumber Statement
867869
hi! link StartifyPath String
870+
hi! link StartifySection Identifier
868871
hi! link StartifySlash Normal
869-
hi! link StartifyBracket Comment
870-
hi! link StartifyHeader Type
871-
hi! link StartifyFooter Normal
872872
hi! link StartifySpecial Comment
873-
hi! link StartifySection Identifier
874873

875874
" fzf:
876875
call s:HL('fzf1', s:magenta, s:xgray2)
877876
call s:HL('fzf2', s:bright_green, s:xgray2)
878877
call s:HL('fzf3', s:bright_white, s:xgray2)
879878

880879
" coc.nvim:
880+
call s:HL('CocErrorHighlight', s:none, s:none, s:undercurl, s:red)
881881
call s:HL('CocErrorSign', s:red)
882-
call s:HL('CocWarningSign', s:bright_orange)
883-
call s:HL('CocInfoSign', s:yellow)
882+
call s:HL('CocHintHighlight', s:none, s:none, s:undercurl, s:blue)
884883
call s:HL('CocHintSign', s:blue)
885-
call s:HL('CocErrorHighlight', s:none, s:none, s:undercurl, s:red)
886-
call s:HL('CocWarningHighlight', s:none, s:none, s:undercurl, s:bright_orange)
887884
call s:HL('CocInfoHighlight', s:none, s:none, s:undercurl, s:yellow)
888-
call s:HL('CocHintHighlight', s:none, s:none, s:undercurl, s:blue)
885+
call s:HL('CocInfoSign', s:yellow)
886+
call s:HL('CocWarningHighlight', s:none, s:none, s:undercurl, s:bright_orange)
887+
call s:HL('CocWarningSign', s:bright_orange)
889888

890889
" CtrlP:
891-
hi! link CtrlPMatch Keyword
892890
hi! link CtrlPBufferHid Normal
891+
hi! link CtrlPMatch Keyword
893892

894893
" NERDTree:
895894
hi! link NERDTreeDirSlash Keyword
@@ -900,8 +899,8 @@ hi! link NERDTreeHelp Comment
900899
call s:HL('TelescopeNormal', s:white)
901900

902901
" GitCommit:
903-
call s:HL('gitcommitSelectedFile', s:green)
904902
call s:HL('gitcommitDiscardedFile', s:red)
903+
call s:HL('gitcommitSelectedFile', s:green)
905904

906905
" Better whitespace:
907906
call s:HL('ExtraWhitespace', s:none, s:red)

0 commit comments

Comments
 (0)