comparison vendor/vim-colors/codedark.vim @ 704:1e0f578f6752

Update vendor and add support for vim packs
author nanaya <me@nanaya.net>
date Sun, 18 Dec 2022 20:06:46 +0900
parents 17cacf387f7c
children
comparison
equal deleted inserted replaced
703:b7cd7465cc26 704:1e0f578f6752
27 exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr 27 exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr
28 endif 28 endif
29 if !empty(a:sp) 29 if !empty(a:sp)
30 exec "hi " . a:group . " guisp=" . a:sp.gui 30 exec "hi " . a:group . " guisp=" . a:sp.gui
31 endif 31 endif
32 endfun
33 " Choose old or new name for Treesitter groups depending on Neovim version
34 fun! <sid>hiTS(g_new, g_old, fg, bg, attr, sp)
35 call <sid>hi(has("nvim-0.8.0")? a:g_new : a:g_old, a:fg, a:bg, a:attr, a:sp)
32 endfun 36 endfun
33 37
34 " ------------------ 38 " ------------------
35 " Color definitions: 39 " Color definitions:
36 " ------------------ 40 " ------------------
104 let s:cdDiffGreenDark = {'gui': '#373D29', 'cterm': s:cterm0B, 'cterm256': '237'} 108 let s:cdDiffGreenDark = {'gui': '#373D29', 'cterm': s:cterm0B, 'cterm256': '237'}
105 let s:cdDiffGreenLight = {'gui': '#4B5632', 'cterm': s:cterm09, 'cterm256': '58'} 109 let s:cdDiffGreenLight = {'gui': '#4B5632', 'cterm': s:cterm09, 'cterm256': '58'}
106 let s:cdDiffBlueLight = {'gui': '#87d7ff', 'cterm': s:cterm0C, 'cterm256': '117'} 110 let s:cdDiffBlueLight = {'gui': '#87d7ff', 'cterm': s:cterm0C, 'cterm256': '117'}
107 let s:cdDiffBlue = {'gui': '#005f87', 'cterm': s:cterm0D, 'cterm256': '24'} 111 let s:cdDiffBlue = {'gui': '#005f87', 'cterm': s:cterm0D, 'cterm256': '24'}
108 112
109 let s:cdSearchCurrent = {'gui': '#4B5632', 'cterm': s:cterm09, 'cterm256': '58'} 113 let s:cdSearchCurrent = {'gui': '#4B5632', 'cterm': s:cterm09, 'cterm256': '58'}
110 let s:cdSearch = {'gui': '#264F78', 'cterm': s:cterm03, 'cterm256': '24'} 114 let s:cdSearch = {'gui': '#264F78', 'cterm': s:cterm03, 'cterm256': '24'}
111 115
112 " Syntax colors: 116 " Syntax colors:
113 117
114 if !exists("g:codedark_conservative") 118 if !exists("g:codedark_conservative")
241 call <sid>hi('SpellRare', s:cdRed, s:cdBack, 'undercurl', s:cdRed) 245 call <sid>hi('SpellRare', s:cdRed, s:cdBack, 'undercurl', s:cdRed)
242 call <sid>hi('SpellLocal', s:cdRed, s:cdBack, 'undercurl', s:cdRed) 246 call <sid>hi('SpellLocal', s:cdRed, s:cdBack, 'undercurl', s:cdRed)
243 247
244 248
245 " Neovim Treesitter: 249 " Neovim Treesitter:
246 call <sid>hi('TSError', s:cdRed, {}, 'none', {}) 250 call <sid>hiTS('@error', 'TSError', s:cdRed, {}, 'none', {})
247 call <sid>hi('TSPunctDelimiter', s:cdFront, {}, 'none', {}) 251 call <sid>hiTS('@punctuation.delimiter', 'TSPunctDelimiter', s:cdFront, {}, 'none', {})
248 call <sid>hi('TSPunctBracket', s:cdFront, {}, 'none', {}) 252 call <sid>hiTS('@punctuation.bracket', 'TSPunctBracket', s:cdFront, {}, 'none', {})
249 call <sid>hi('TSPunctSpecial', s:cdFront, {}, 'none', {}) 253 call <sid>hiTS('@punctuation.special', 'TSPunctSpecial', s:cdFront, {}, 'none', {})
250 " Constant 254 " Constant
251 call <sid>hi('TSConstant', s:cdYellow, {}, 'none', {}) 255 call <sid>hiTS('@constant', 'TSConstant', s:cdYellow, {}, 'none', {})
252 call <sid>hi('TSConstBuiltin', s:cdBlue, {}, 'none', {}) 256 call <sid>hiTS('@constant.builtin', 'TSConstBuiltin', s:cdBlue, {}, 'none', {})
253 call <sid>hi('TSConstMacro', s:cdBlueGreen, {}, 'none', {}) 257 call <sid>hiTS('@constant.macro', 'TSConstMacro', s:cdBlueGreen, {}, 'none', {})
254 call <sid>hi('TSStringRegex', s:cdOrange, {}, 'none', {}) 258 call <sid>hiTS('@string.regex', 'TSStringRegex', s:cdOrange, {}, 'none', {})
255 call <sid>hi('TSString', s:cdOrange, {}, 'none', {}) 259 call <sid>hiTS('@string', 'TSString', s:cdOrange, {}, 'none', {})
256 call <sid>hi('TSStringEscape', s:cdYellowOrange, {}, 'none', {}) 260 call <sid>hiTS('@string.escape', 'TSStringEscape', s:cdYellowOrange, {}, 'none', {})
257 call <sid>hi('TSCharacter', s:cdOrange, {}, 'none', {}) 261 call <sid>hiTS('@character', 'TSCharacter', s:cdOrange, {}, 'none', {})
258 call <sid>hi('TSNumber', s:cdLightGreen, {}, 'none', {}) 262 call <sid>hiTS('@number', 'TSNumber', s:cdLightGreen, {}, 'none', {})
259 call <sid>hi('TSBoolean', s:cdBlue, {}, 'none', {}) 263 call <sid>hiTS('@boolean', 'TSBoolean', s:cdBlue, {}, 'none', {})
260 call <sid>hi('TSFloat', s:cdLightGreen, {}, 'none', {}) 264 call <sid>hiTS('@float', 'TSFloat', s:cdLightGreen, {}, 'none', {})
261 call <sid>hi('TSAnnotation', s:cdYellow, {}, 'none', {}) 265 call <sid>hiTS('@annotation', 'TSAnnotation', s:cdYellow, {}, 'none', {})
262 call <sid>hi('TSAttribute', s:cdBlueGreen, {}, 'none', {}) 266 call <sid>hiTS('@attribute', 'TSAttribute', s:cdBlueGreen, {}, 'none', {})
263 call <sid>hi('TSNamespace', s:cdBlueGreen, {}, 'none', {}) 267 call <sid>hiTS('@namespace', 'TSNamespace', s:cdBlueGreen, {}, 'none', {})
264 " Functions 268 " Functions
265 call <sid>hi('TSFuncBuiltin', s:cdYellow, {}, 'none', {}) 269 call <sid>hiTS('@function.builtin', 'TSFuncBuiltin', s:cdYellow, {}, 'none', {})
266 call <sid>hi('TSFunction', s:cdYellow, {}, 'none', {}) 270 call <sid>hiTS('@function', 'TSFunction', s:cdYellow, {}, 'none', {})
267 call <sid>hi('TSFuncMacro', s:cdYellow, {}, 'none', {}) 271 call <sid>hiTS('@function.macro', 'TSFuncMacro', s:cdYellow, {}, 'none', {})
268 call <sid>hi('TSParameter', s:cdLightBlue, {}, 'none', {}) 272 call <sid>hiTS('@parameter', 'TSParameter', s:cdLightBlue, {}, 'none', {})
269 call <sid>hi('TSParameterReference', s:cdLightBlue, {}, 'none', {}) 273 call <sid>hiTS('@parameter.reference', 'TSParameterReference', s:cdLightBlue, {}, 'none', {})
270 call <sid>hi('TSMethod', s:cdYellow, {}, 'none', {}) 274 call <sid>hiTS('@method', 'TSMethod', s:cdYellow, {}, 'none', {})
271 call <sid>hi('TSField', s:cdLightBlue, {}, 'none', {}) 275 call <sid>hiTS('@field', 'TSField', s:cdLightBlue, {}, 'none', {})
272 call <sid>hi('TSProperty', s:cdLightBlue, {}, 'none', {}) 276 call <sid>hiTS('@property', 'TSProperty', s:cdLightBlue, {}, 'none', {})
273 call <sid>hi('TSConstructor', s:cdBlueGreen, {}, 'none', {}) 277 call <sid>hiTS('@constructor', 'TSConstructor', s:cdBlueGreen, {}, 'none', {})
274 " Keywords 278 " Keywords
275 call <sid>hi('TSConditional', s:cdPink, {}, 'none', {}) 279 call <sid>hiTS('@conditional', 'TSConditional', s:cdPink, {}, 'none', {})
276 call <sid>hi('TSRepeat', s:cdPink, {}, 'none', {}) 280 call <sid>hiTS('@repeat', 'TSRepeat', s:cdPink, {}, 'none', {})
277 call <sid>hi('TSLabel', s:cdLightBlue, {}, 'none', {}) 281 call <sid>hiTS('@label', 'TSLabel', s:cdLightBlue, {}, 'none', {})
278 call <sid>hi('TSKeyword', s:cdBlue, {}, 'none', {}) 282 call <sid>hiTS('@keyword', 'TSKeyword', s:cdBlue, {}, 'none', {})
279 call <sid>hi('TSKeywordFunction', s:cdBlue, {}, 'none', {}) 283 call <sid>hiTS('@keyword.function', 'TSKeywordFunction', s:cdBlue, {}, 'none', {})
280 call <sid>hi('TSKeywordOperator', s:cdBlue, {}, 'none', {}) 284 call <sid>hiTS('@keyword.operator', 'TSKeywordOperator', s:cdBlue, {}, 'none', {})
281 call <sid>hi('TSOperator', s:cdFront, {}, 'none', {}) 285 call <sid>hiTS('@operator', 'TSOperator', s:cdFront, {}, 'none', {})
282 call <sid>hi('TSException', s:cdPink, {}, 'none', {}) 286 call <sid>hiTS('@exception', 'TSException', s:cdPink, {}, 'none', {})
283 call <sid>hi('TSType', s:cdBlueGreen, {}, 'none', {}) 287 call <sid>hiTS('@type', 'TSType', s:cdBlueGreen, {}, 'none', {})
284 call <sid>hi('TSTypeBuiltin', s:cdBlue, {}, 'none', {}) 288 call <sid>hiTS('@type.builtin', 'TSTypeBuiltin', s:cdBlue, {}, 'none', {})
285 call <sid>hi('TSStructure', s:cdLightBlue, {}, 'none', {}) 289 call <sid>hi('TSStructure', s:cdLightBlue, {}, 'none', {})
286 call <sid>hi('TSInclude', s:cdPink, {}, 'none', {}) 290 call <sid>hiTS('@include', 'TSInclude', s:cdPink, {}, 'none', {})
287 " Variable 291 " Variable
288 call <sid>hi('TSVariable', s:cdLightBlue, {}, 'none', {}) 292 call <sid>hiTS('@variable', 'TSVariable', s:cdLightBlue, {}, 'none', {})
289 call <sid>hi('TSVariableBuiltin', s:cdLightBlue, {}, 'none', {}) 293 call <sid>hiTS('@variable.builtin', 'TSVariableBuiltin', s:cdLightBlue, {}, 'none', {})
290 " Text 294 " Text
291 call <sid>hi('TSText', s:cdYellowOrange, {}, 'none', {}) 295 call <sid>hiTS('@text', 'TSText', s:cdYellowOrange, {}, 'none', {})
292 call <sid>hi('TSStrong', s:cdYellowOrange, {}, 'none', {}) 296 call <sid>hiTS('@text.strong', 'TSStrong', s:cdYellowOrange, {}, 'none', {})
293 call <sid>hi('TSEmphasis', s:cdYellowOrange, {}, 'none', {}) 297 call <sid>hiTS('@text.emphasis', 'TSEmphasis', s:cdYellowOrange, {}, 'none', {})
294 call <sid>hi('TSUnderline', s:cdYellowOrange, {}, 'none', {}) 298 call <sid>hiTS('@text.underline', 'TSUnderline', s:cdYellowOrange, {}, 'none', {})
295 call <sid>hi('TSTitle', s:cdYellowOrange, {}, 'none', {}) 299 call <sid>hiTS('@text.title', 'TSTitle', s:cdYellowOrange, {}, 'none', {})
296 call <sid>hi('TSLiteral', s:cdYellowOrange, {}, 'none', {}) 300 call <sid>hiTS('@text.literal', 'TSLiteral', s:cdYellowOrange, {}, 'none', {})
297 call <sid>hi('TSURI', s:cdYellowOrange, {}, 'none', {}) 301 call <sid>hiTS('@text.uri', 'TSURI', s:cdYellowOrange, {}, 'none', {})
298 " Tags 302 " Tags
299 call <sid>hi('TSTag', s:cdBlue, {}, 'none', {}) 303 call <sid>hiTS('@tag', 'TSTag', s:cdBlue, {}, 'none', {})
300 call <sid>hi('TSTagDelimiter', s:cdGray, {}, 'none', {}) 304 call <sid>hiTS('@tag.delimiter', 'TSTagDelimiter', s:cdGray, {}, 'none', {})
301 305
302 " Markdown: 306 " Markdown:
303 call <sid>hi('markdownH1', s:cdBlue, {}, 'bold', {}) 307 call <sid>hi('markdownH1', s:cdBlue, {}, 'bold', {})
304 call <sid>hi('markdownH2', s:cdBlue, {}, 'bold', {}) 308 call <sid>hi('markdownH2', s:cdBlue, {}, 'bold', {})
305 call <sid>hi('markdownH3', s:cdBlue, {}, 'bold', {}) 309 call <sid>hi('markdownH3', s:cdBlue, {}, 'bold', {})
614 " Coc Explorer: 618 " Coc Explorer:
615 call <sid>hi('CocHighlightText', {}, s:cdSelection, 'none', {}) 619 call <sid>hi('CocHighlightText', {}, s:cdSelection, 'none', {})
616 call <sid>hi('CocExplorerIndentLine', s:cdCursorDark, {}, 'none', {}) 620 call <sid>hi('CocExplorerIndentLine', s:cdCursorDark, {}, 'none', {})
617 621
618 " nvim-cmp 622 " nvim-cmp
619 call <sid>hi('CmpItemAbbrDeprecated', s:cdGray, {}, 'strikethrough', {}) 623 call <sid>hi('CmpItemAbbrDeprecated', s:cdGray, {}, 'none', {})
620 call <sid>hi('CmpItemAbbrMatch', s:cdBlue, {}, 'none', {}) 624 call <sid>hi('CmpItemAbbrMatch', s:cdBlue, {}, 'none', {})
621 call <sid>hi('CmpItemAbbrMatchFuzzy', s:cdBlue, {}, 'none', {}) 625 call <sid>hi('CmpItemAbbrMatchFuzzy', s:cdBlue, {}, 'none', {})
622 call <sid>hi('CmpItemKindVariable', s:cdLightBlue, {}, 'none', {}) 626 call <sid>hi('CmpItemKindVariable', s:cdLightBlue, {}, 'none', {})
623 call <sid>hi('CmpItemKindInterface', s:cdLightBlue, {}, 'none', {}) 627 call <sid>hi('CmpItemKindInterface', s:cdLightBlue, {}, 'none', {})
624 call <sid>hi('CmpItemKindText', s:cdLightBlue, {}, 'none', {}) 628 call <sid>hi('CmpItemKindText', s:cdLightBlue, {}, 'none', {})