Mercurial > ec-dotfiles
comparison vendor/vim-colors/codedark.vim @ 673:6cdd7d26260d
[vim] Update syntaxes and colors
author | nanaya <me@nanaya.pro> |
---|---|
date | Tue, 05 Apr 2022 13:55:06 +0900 |
parents | f280738a90a6 |
children | 17cacf387f7c |
comparison
equal
deleted
inserted
replaced
672:2febdacae5b4 | 673:6cdd7d26260d |
---|---|
105 | 105 |
106 if !exists("g:codedark_conservative") | 106 if !exists("g:codedark_conservative") |
107 let g:codedark_conservative=0 | 107 let g:codedark_conservative=0 |
108 endif | 108 endif |
109 | 109 |
110 " Italicized comments | |
111 if !exists("g:codedark_italics") | |
112 let g:codedark_italics=0 | |
113 endif | |
114 | |
110 let s:cdGray = {'gui': '#808080', 'cterm': s:cterm04, 'cterm256': '08'} | 115 let s:cdGray = {'gui': '#808080', 'cterm': s:cterm04, 'cterm256': '08'} |
111 let s:cdViolet = {'gui': '#646695', 'cterm': s:cterm04, 'cterm256': '60'} | 116 let s:cdViolet = {'gui': '#646695', 'cterm': s:cterm04, 'cterm256': '60'} |
112 let s:cdBlue = {'gui': '#569CD6', 'cterm': s:cterm0D, 'cterm256': '75'} | 117 let s:cdBlue = {'gui': '#569CD6', 'cterm': s:cterm0D, 'cterm256': '75'} |
113 let s:cdDarkBlue = {'gui': '#223E55', 'cterm': s:cterm0D, 'cterm256': '73'} | 118 let s:cdDarkBlue = {'gui': '#223E55', 'cterm': s:cterm0D, 'cterm256': '73'} |
114 let s:cdLightBlue = {'gui': '#9CDCFE', 'cterm': s:cterm0C, 'cterm256': '117'} | 119 let s:cdLightBlue = {'gui': '#9CDCFE', 'cterm': s:cterm0C, 'cterm256': '117'} |
123 let s:cdYellowOrange = {'gui': '#D7BA7D', 'cterm': s:cterm0A, 'cterm256': '179'} | 128 let s:cdYellowOrange = {'gui': '#D7BA7D', 'cterm': s:cterm0A, 'cterm256': '179'} |
124 let s:cdYellow = {'gui': '#DCDCAA', 'cterm': s:cterm0A, 'cterm256': '187'} | 129 let s:cdYellow = {'gui': '#DCDCAA', 'cterm': s:cterm0A, 'cterm256': '187'} |
125 if g:codedark_conservative | let s:cdYellow = s:cdFront | endif | 130 if g:codedark_conservative | let s:cdYellow = s:cdFront | endif |
126 let s:cdPink = {'gui': '#C586C0', 'cterm': s:cterm0E, 'cterm256': '176'} | 131 let s:cdPink = {'gui': '#C586C0', 'cterm': s:cterm0E, 'cterm256': '176'} |
127 if g:codedark_conservative | let s:cdPink = s:cdBlue | endif | 132 if g:codedark_conservative | let s:cdPink = s:cdBlue | endif |
133 let s:cdSilver = {'gui': '#C0C0C0', 'cterm': s:cterm05, 'cterm256': '7'} | |
128 | 134 |
129 " Vim editor colors | 135 " Vim editor colors |
130 " <sid>hi(GROUP, FOREGROUND, BACKGROUND, ATTRIBUTE, SPECIAL) | 136 " <sid>hi(GROUP, FOREGROUND, BACKGROUND, ATTRIBUTE, SPECIAL) |
131 call <sid>hi('Normal', s:cdFront, s:cdBack, 'none', {}) | 137 call <sid>hi('Normal', s:cdFront, s:cdBack, 'none', {}) |
132 call <sid>hi('ColorColumn', {}, s:cdCursorDarkDark, 'none', {}) | 138 call <sid>hi('ColorColumn', {}, s:cdCursorDarkDark, 'none', {}) |
172 " Legacy groups for official git.vim and diff.vim syntax | 178 " Legacy groups for official git.vim and diff.vim syntax |
173 hi! link diffAdded DiffAdd | 179 hi! link diffAdded DiffAdd |
174 hi! link diffChanged DiffChange | 180 hi! link diffChanged DiffChange |
175 hi! link diffRemoved DiffDelete | 181 hi! link diffRemoved DiffDelete |
176 | 182 |
177 call <sid>hi('Comment', s:cdGreen, {}, 'none', {}) | 183 if g:codedark_italics | call <sid>hi('Comment', s:cdGreen, {}, 'italic', {}) | else | call <sid>hi('Comment', s:cdGreen, {}, 'none', {}) | endif |
178 | 184 |
179 call <sid>hi('Constant', s:cdBlue, {}, 'none', {}) | 185 call <sid>hi('Constant', s:cdBlue, {}, 'none', {}) |
180 call <sid>hi('String', s:cdOrange, {}, 'none', {}) | 186 call <sid>hi('String', s:cdOrange, {}, 'none', {}) |
181 call <sid>hi('Character', s:cdOrange, {}, 'none', {}) | 187 call <sid>hi('Character', s:cdOrange, {}, 'none', {}) |
182 call <sid>hi('Number', s:cdLightGreen, {}, 'none', {}) | 188 call <sid>hi('Number', s:cdLightGreen, {}, 'none', {}) |
207 | 213 |
208 call <sid>hi('Special', s:cdYellowOrange, {}, 'none', {}) | 214 call <sid>hi('Special', s:cdYellowOrange, {}, 'none', {}) |
209 call <sid>hi('SpecialChar', s:cdFront, {}, 'none', {}) | 215 call <sid>hi('SpecialChar', s:cdFront, {}, 'none', {}) |
210 call <sid>hi('Tag', s:cdFront, {}, 'none', {}) | 216 call <sid>hi('Tag', s:cdFront, {}, 'none', {}) |
211 call <sid>hi('Delimiter', s:cdFront, {}, 'none', {}) | 217 call <sid>hi('Delimiter', s:cdFront, {}, 'none', {}) |
212 call <sid>hi('SpecialComment', s:cdGreen, {}, 'none', {}) | 218 if g:codedark_italics | call <sid>hi('SpecialComment', s:cdGreen, {}, 'italic', {}) | else | call <sid>hi('SpecialComment', s:cdGreen, {}, 'none', {}) | endif |
213 call <sid>hi('Debug', s:cdFront, {}, 'none', {}) | 219 call <sid>hi('Debug', s:cdFront, {}, 'none', {}) |
214 | 220 |
215 call <sid>hi('Underlined', s:cdNone, {}, 'underline', {}) | 221 call <sid>hi('Underlined', s:cdNone, {}, 'underline', {}) |
216 call <sid>hi("Conceal", s:cdFront, s:cdBack, 'none', {}) | 222 call <sid>hi("Conceal", s:cdFront, s:cdBack, 'none', {}) |
217 | 223 |
259 " Keywords | 265 " Keywords |
260 call <sid>hi('TSConditional', s:cdPink, {}, 'none', {}) | 266 call <sid>hi('TSConditional', s:cdPink, {}, 'none', {}) |
261 call <sid>hi('TSRepeat', s:cdPink, {}, 'none', {}) | 267 call <sid>hi('TSRepeat', s:cdPink, {}, 'none', {}) |
262 call <sid>hi('TSLabel', s:cdLightBlue, {}, 'none', {}) | 268 call <sid>hi('TSLabel', s:cdLightBlue, {}, 'none', {}) |
263 call <sid>hi('TSKeyword', s:cdBlue, {}, 'none', {}) | 269 call <sid>hi('TSKeyword', s:cdBlue, {}, 'none', {}) |
264 call <sid>hi('TSKeywordFunction', s:cdPink, {}, 'none', {}) | 270 call <sid>hi('TSKeywordFunction', s:cdBlue, {}, 'none', {}) |
265 call <sid>hi('TSKeywordOperator', s:cdBlue, {}, 'none', {}) | 271 call <sid>hi('TSKeywordOperator', s:cdBlue, {}, 'none', {}) |
266 call <sid>hi('TSOperator', s:cdFront, {}, 'none', {}) | 272 call <sid>hi('TSOperator', s:cdFront, {}, 'none', {}) |
267 call <sid>hi('TSException', s:cdPink, {}, 'none', {}) | 273 call <sid>hi('TSException', s:cdPink, {}, 'none', {}) |
268 call <sid>hi('TSType', s:cdBlueGreen, {}, 'none', {}) | 274 call <sid>hi('TSType', s:cdBlueGreen, {}, 'none', {}) |
269 call <sid>hi('TSTypeBuiltin', s:cdBlue, {}, 'none', {}) | 275 call <sid>hi('TSTypeBuiltin', s:cdBlue, {}, 'none', {}) |
534 call <sid>hi('luaFuncArgName', s:cdLightBlue, {}, 'none', {}) | 540 call <sid>hi('luaFuncArgName', s:cdLightBlue, {}, 'none', {}) |
535 call <sid>hi('luaFuncKeyword', s:cdPink, {}, 'none', {}) | 541 call <sid>hi('luaFuncKeyword', s:cdPink, {}, 'none', {}) |
536 call <sid>hi('luaLocal', s:cdPink, {}, 'none', {}) | 542 call <sid>hi('luaLocal', s:cdPink, {}, 'none', {}) |
537 call <sid>hi('luaBuiltIn', s:cdBlue, {}, 'none', {}) | 543 call <sid>hi('luaBuiltIn', s:cdBlue, {}, 'none', {}) |
538 | 544 |
545 | |
539 " SH: | 546 " SH: |
540 call <sid>hi('shDeref', s:cdLightBlue, {}, 'none', {}) | 547 call <sid>hi('shDeref', s:cdLightBlue, {}, 'none', {}) |
541 call <sid>hi('shVariable', s:cdLightBlue, {}, 'none', {}) | 548 call <sid>hi('shVariable', s:cdLightBlue, {}, 'none', {}) |
542 | 549 |
543 " SQL: | 550 " SQL: |
547 | 554 |
548 " YAML: | 555 " YAML: |
549 call <sid>hi('yamlKey', s:cdBlue, {}, 'none', {}) | 556 call <sid>hi('yamlKey', s:cdBlue, {}, 'none', {}) |
550 call <sid>hi('yamlConstant', s:cdBlue, {}, 'none', {}) | 557 call <sid>hi('yamlConstant', s:cdBlue, {}, 'none', {}) |
551 | 558 |
559 " C++: | |
560 call <sid>hi('CTagsClass', s:cdBlueGreen, {}, 'none', {}) | |
561 call <sid>hi('CTagsStructure', s:cdBlueGreen, {}, 'none', {}) | |
562 call <sid>hi('CTagsNamespace', s:cdBlueGreen, {}, 'none', {}) | |
563 call <sid>hi('CTagsGlobalVariable', s:cdBlueGreen, {}, 'none', {}) | |
564 call <sid>hi('CTagsDefinedName ', s:cdBlue, {}, 'none', {}) | |
565 highlight def link CTagsFunction Function | |
566 highlight def link CTagsMember Identifier | |
567 | |
568 " C++ color_coded | |
569 call <sid>hi('StructDecl', s:cdBlueGreen, {}, 'none', {}) | |
570 call <sid>hi('UnionDecl', s:cdBlueGreen, {}, 'none', {}) | |
571 call <sid>hi('ClassDecl', s:cdBlueGreen, {}, 'none', {}) | |
572 call <sid>hi('TypeRef', s:cdBlueGreen, {}, 'none', {}) | |
573 call <sid>hi('TypedefDecl', s:cdBlueGreen, {}, 'none', {}) | |
574 call <sid>hi('TypeAliasDecl', s:cdBlueGreen, {}, 'none', {}) | |
575 call <sid>hi('EnumDecl', s:cdBlueGreen, {}, 'none', {}) | |
576 call <sid>hi('TemplateTypeParameter', s:cdBlueGreen, {}, 'none', {}) | |
577 call <sid>hi('TypeAliasTemplateDecl', s:cdBlueGreen, {}, 'none', {}) | |
578 call <sid>hi('ClassTemplate', s:cdBlueGreen, {}, 'none', {}) | |
579 call <sid>hi('ClassTemplatePartialSpecialization', s:cdBlueGreen, {}, 'none', {}) | |
580 call <sid>hi('FunctionTemplate', s:cdBlueGreen, {}, 'none', {}) | |
581 call <sid>hi('TemplateRef', s:cdBlueGreen, {}, 'none', {}) | |
582 call <sid>hi('TemplateTemplateParameter', s:cdBlueGreen, {}, 'none', {}) | |
583 call <sid>hi('UsingDeclaration', s:cdBlueGreen, {}, 'none', {}) | |
584 call <sid>hi('MemberRef', s:cdLightBlue, {}, 'italic', {}) | |
585 call <sid>hi('MemberRefExpr', s:cdYellow, {}, 'italic', {}) | |
586 call <sid>hi('Namespace', s:cdSilver, {}, 'none', {}) | |
587 call <sid>hi('NamespaceRef', s:cdSilver, {}, 'none', {}) | |
588 call <sid>hi('NamespaceAlias', s:cdSilver, {}, 'none', {}) | |
589 | |
590 " C++ lsp-cxx-highlight | |
591 call <sid>hi('LspCxxHlSymClass', s:cdBlueGreen, {}, 'none', {}) | |
592 call <sid>hi('LspCxxHlSymStruct', s:cdBlueGreen, {}, 'none', {}) | |
593 call <sid>hi('LspCxxHlSymEnum', s:cdBlueGreen, {}, 'none', {}) | |
594 call <sid>hi('LspCxxHlSymTypeAlias', s:cdBlueGreen, {}, 'none', {}) | |
595 call <sid>hi('LspCxxHlSymTypeParameter', s:cdBlueGreen, {}, 'none', {}) | |
596 call <sid>hi('LspCxxHlSymConcept', s:cdBlueGreen, {}, 'italic', {}) | |
597 call <sid>hi('LspCxxHlSymNamespace', s:cdSilver, {}, 'none', {}) | |
598 | |
552 " Coc Explorer: | 599 " Coc Explorer: |
600 call <sid>hi('CocHighlightText', {}, s:cdSelection, 'none', {}) | |
553 call <sid>hi('CocExplorerIndentLine', s:cdCursorDark, {}, 'none', {}) | 601 call <sid>hi('CocExplorerIndentLine', s:cdCursorDark, {}, 'none', {}) |
602 | |
603 " nvim-cmp | |
604 call <sid>hi('CmpItemAbbrDeprecated', s:cdGray, {}, 'strikethrough', {}) | |
605 call <sid>hi('CmpItemAbbrMatch', s:cdBlue, {}, 'none', {}) | |
606 call <sid>hi('CmpItemAbbrMatchFuzzy', s:cdBlue, {}, 'none', {}) | |
607 call <sid>hi('CmpItemKindVariable', s:cdLightBlue, {}, 'none', {}) | |
608 call <sid>hi('CmpItemKindInterface', s:cdLightBlue, {}, 'none', {}) | |
609 call <sid>hi('CmpItemKindText', s:cdLightBlue, {}, 'none', {}) | |
610 call <sid>hi('CmpItemKindFunction', s:cdPink, {}, 'none', {}) | |
611 call <sid>hi('CmpItemKindMethod ', s:cdPink, {}, 'none', {}) | |
612 call <sid>hi('CmpItemKindKeyword', s:cdFront, {}, 'none', {}) | |
613 call <sid>hi('CmpItemKindProperty', s:cdFront, {}, 'none', {}) | |
614 call <sid>hi('CmpItemKindUnit', s:cdFront, {}, 'none', {}) |