diff --git a/colors/codedark.vim b/colors/codedark.vim index d2291e7..322d869 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -245,63 +245,78 @@ call hi('SpellCap', s:cdRed, s:cdBack, 'undercurl', s:cdRed) call hi('SpellRare', s:cdRed, s:cdBack, 'undercurl', s:cdRed) call hi('SpellLocal', s:cdRed, s:cdBack, 'undercurl', s:cdRed) +" Make neovim specific groups load only on Neovim +if has("nvim") + " Neovim Treesitter: + call hiTS('@error', 'TSError', s:cdRed, {}, 'none', {}) + call hiTS('@punctuation.delimiter', 'TSPunctDelimiter', s:cdFront, {}, 'none', {}) + call hiTS('@punctuation.bracket', 'TSPunctBracket', s:cdFront, {}, 'none', {}) + call hiTS('@punctuation.special', 'TSPunctSpecial', s:cdFront, {}, 'none', {}) + " Constant + call hiTS('@constant', 'TSConstant', s:cdYellow, {}, 'none', {}) + call hiTS('@constant.builtin', 'TSConstBuiltin', s:cdBlue, {}, 'none', {}) + call hiTS('@constant.macro', 'TSConstMacro', s:cdBlueGreen, {}, 'none', {}) + call hiTS('@string.regex', 'TSStringRegex', s:cdOrange, {}, 'none', {}) + call hiTS('@string', 'TSString', s:cdOrange, {}, 'none', {}) + call hiTS('@string.escape', 'TSStringEscape', s:cdYellowOrange, {}, 'none', {}) + call hiTS('@character', 'TSCharacter', s:cdOrange, {}, 'none', {}) + call hiTS('@number', 'TSNumber', s:cdLightGreen, {}, 'none', {}) + call hiTS('@boolean', 'TSBoolean', s:cdBlue, {}, 'none', {}) + call hiTS('@float', 'TSFloat', s:cdLightGreen, {}, 'none', {}) + call hiTS('@annotation', 'TSAnnotation', s:cdYellow, {}, 'none', {}) + call hiTS('@attribute', 'TSAttribute', s:cdBlueGreen, {}, 'none', {}) + call hiTS('@namespace', 'TSNamespace', s:cdBlueGreen, {}, 'none', {}) + " Functions + call hiTS('@function.builtin', 'TSFuncBuiltin', s:cdYellow, {}, 'none', {}) + call hiTS('@function', 'TSFunction', s:cdYellow, {}, 'none', {}) + call hiTS('@function.macro', 'TSFuncMacro', s:cdYellow, {}, 'none', {}) + call hiTS('@parameter', 'TSParameter', s:cdLightBlue, {}, 'none', {}) + call hiTS('@parameter.reference', 'TSParameterReference', s:cdLightBlue, {}, 'none', {}) + call hiTS('@method', 'TSMethod', s:cdYellow, {}, 'none', {}) + call hiTS('@field', 'TSField', s:cdLightBlue, {}, 'none', {}) + call hiTS('@property', 'TSProperty', s:cdLightBlue, {}, 'none', {}) + call hiTS('@constructor', 'TSConstructor', s:cdBlueGreen, {}, 'none', {}) + " Keywords + call hiTS('@conditional', 'TSConditional', s:cdPink, {}, 'none', {}) + call hiTS('@repeat', 'TSRepeat', s:cdPink, {}, 'none', {}) + call hiTS('@label', 'TSLabel', s:cdLightBlue, {}, 'none', {}) + call hiTS('@keyword', 'TSKeyword', s:cdBlue, {}, 'none', {}) + call hiTS('@keyword.function', 'TSKeywordFunction', s:cdBlue, {}, 'none', {}) + call hiTS('@keyword.operator', 'TSKeywordOperator', s:cdBlue, {}, 'none', {}) + call hiTS('@operator', 'TSOperator', s:cdFront, {}, 'none', {}) + call hiTS('@exception', 'TSException', s:cdPink, {}, 'none', {}) + call hiTS('@type', 'TSType', s:cdBlueGreen, {}, 'none', {}) + call hiTS('@type.builtin', 'TSTypeBuiltin', s:cdBlue, {}, 'none', {}) + call hi('TSStructure', s:cdLightBlue, {}, 'none', {}) + call hiTS('@include', 'TSInclude', s:cdPink, {}, 'none', {}) + " Variable + call hiTS('@variable', 'TSVariable', s:cdLightBlue, {}, 'none', {}) + call hiTS('@variable.builtin', 'TSVariableBuiltin', s:cdLightBlue, {}, 'none', {}) + " Text + call hiTS('@text', 'TSText', s:cdYellowOrange, {}, 'none', {}) + call hiTS('@text.strong', 'TSStrong', s:cdYellowOrange, {}, 'none', {}) + call hiTS('@text.emphasis', 'TSEmphasis', s:cdYellowOrange, {}, 'none', {}) + call hiTS('@text.underline', 'TSUnderline', s:cdYellowOrange, {}, 'none', {}) + call hiTS('@text.title', 'TSTitle', s:cdYellowOrange, {}, 'none', {}) + call hiTS('@text.literal', 'TSLiteral', s:cdYellowOrange, {}, 'none', {}) + call hiTS('@text.uri', 'TSURI', s:cdYellowOrange, {}, 'none', {}) + " Tags + call hiTS('@tag', 'TSTag', s:cdBlue, {}, 'none', {}) + call hiTS('@tag.delimiter', 'TSTagDelimiter', s:cdGray, {}, 'none', {}) -" Neovim Treesitter: -call hiTS('@error', 'TSError', s:cdRed, {}, 'none', {}) -call hiTS('@punctuation.delimiter', 'TSPunctDelimiter', s:cdFront, {}, 'none', {}) -call hiTS('@punctuation.bracket', 'TSPunctBracket', s:cdFront, {}, 'none', {}) -call hiTS('@punctuation.special', 'TSPunctSpecial', s:cdFront, {}, 'none', {}) -" Constant -call hiTS('@constant', 'TSConstant', s:cdYellow, {}, 'none', {}) -call hiTS('@constant.builtin', 'TSConstBuiltin', s:cdBlue, {}, 'none', {}) -call hiTS('@constant.macro', 'TSConstMacro', s:cdBlueGreen, {}, 'none', {}) -call hiTS('@string.regex', 'TSStringRegex', s:cdOrange, {}, 'none', {}) -call hiTS('@string', 'TSString', s:cdOrange, {}, 'none', {}) -call hiTS('@string.escape', 'TSStringEscape', s:cdYellowOrange, {}, 'none', {}) -call hiTS('@character', 'TSCharacter', s:cdOrange, {}, 'none', {}) -call hiTS('@number', 'TSNumber', s:cdLightGreen, {}, 'none', {}) -call hiTS('@boolean', 'TSBoolean', s:cdBlue, {}, 'none', {}) -call hiTS('@float', 'TSFloat', s:cdLightGreen, {}, 'none', {}) -call hiTS('@annotation', 'TSAnnotation', s:cdYellow, {}, 'none', {}) -call hiTS('@attribute', 'TSAttribute', s:cdBlueGreen, {}, 'none', {}) -call hiTS('@namespace', 'TSNamespace', s:cdBlueGreen, {}, 'none', {}) -" Functions -call hiTS('@function.builtin', 'TSFuncBuiltin', s:cdYellow, {}, 'none', {}) -call hiTS('@function', 'TSFunction', s:cdYellow, {}, 'none', {}) -call hiTS('@function.macro', 'TSFuncMacro', s:cdYellow, {}, 'none', {}) -call hiTS('@parameter', 'TSParameter', s:cdLightBlue, {}, 'none', {}) -call hiTS('@parameter.reference', 'TSParameterReference', s:cdLightBlue, {}, 'none', {}) -call hiTS('@method', 'TSMethod', s:cdYellow, {}, 'none', {}) -call hiTS('@field', 'TSField', s:cdLightBlue, {}, 'none', {}) -call hiTS('@property', 'TSProperty', s:cdLightBlue, {}, 'none', {}) -call hiTS('@constructor', 'TSConstructor', s:cdBlueGreen, {}, 'none', {}) -" Keywords -call hiTS('@conditional', 'TSConditional', s:cdPink, {}, 'none', {}) -call hiTS('@repeat', 'TSRepeat', s:cdPink, {}, 'none', {}) -call hiTS('@label', 'TSLabel', s:cdLightBlue, {}, 'none', {}) -call hiTS('@keyword', 'TSKeyword', s:cdBlue, {}, 'none', {}) -call hiTS('@keyword.function', 'TSKeywordFunction', s:cdBlue, {}, 'none', {}) -call hiTS('@keyword.operator', 'TSKeywordOperator', s:cdBlue, {}, 'none', {}) -call hiTS('@operator', 'TSOperator', s:cdFront, {}, 'none', {}) -call hiTS('@exception', 'TSException', s:cdPink, {}, 'none', {}) -call hiTS('@type', 'TSType', s:cdBlueGreen, {}, 'none', {}) -call hiTS('@type.builtin', 'TSTypeBuiltin', s:cdBlue, {}, 'none', {}) -call hi('TSStructure', s:cdLightBlue, {}, 'none', {}) -call hiTS('@include', 'TSInclude', s:cdPink, {}, 'none', {}) -" Variable -call hiTS('@variable', 'TSVariable', s:cdLightBlue, {}, 'none', {}) -call hiTS('@variable.builtin', 'TSVariableBuiltin', s:cdLightBlue, {}, 'none', {}) -" Text -call hiTS('@text', 'TSText', s:cdYellowOrange, {}, 'none', {}) -call hiTS('@text.strong', 'TSStrong', s:cdYellowOrange, {}, 'none', {}) -call hiTS('@text.emphasis', 'TSEmphasis', s:cdYellowOrange, {}, 'none', {}) -call hiTS('@text.underline', 'TSUnderline', s:cdYellowOrange, {}, 'none', {}) -call hiTS('@text.title', 'TSTitle', s:cdYellowOrange, {}, 'none', {}) -call hiTS('@text.literal', 'TSLiteral', s:cdYellowOrange, {}, 'none', {}) -call hiTS('@text.uri', 'TSURI', s:cdYellowOrange, {}, 'none', {}) -" Tags -call hiTS('@tag', 'TSTag', s:cdBlue, {}, 'none', {}) -call hiTS('@tag.delimiter', 'TSTagDelimiter', s:cdGray, {}, 'none', {}) + " nvim-cmp + call hi('CmpItemAbbrDeprecated', s:cdGray, {}, 'none', {}) + call hi('CmpItemAbbrMatch', s:cdBlue, {}, 'none', {}) + call hi('CmpItemAbbrMatchFuzzy', s:cdBlue, {}, 'none', {}) + call hi('CmpItemKindVariable', s:cdLightBlue, {}, 'none', {}) + call hi('CmpItemKindInterface', s:cdLightBlue, {}, 'none', {}) + call hi('CmpItemKindText', s:cdLightBlue, {}, 'none', {}) + call hi('CmpItemKindFunction', s:cdPink, {}, 'none', {}) + call hi('CmpItemKindMethod ', s:cdPink, {}, 'none', {}) + call hi('CmpItemKindKeyword', s:cdFront, {}, 'none', {}) + call hi('CmpItemKindProperty', s:cdFront, {}, 'none', {}) + call hi('CmpItemKindUnit', s:cdFront, {}, 'none', {}) +endif " Markdown: call hi('markdownH1', s:cdBlue, {}, 'bold', {}) @@ -618,16 +633,3 @@ call hi('LspCxxHlSymNamespace', s:cdSilver, {}, 'none', {}) " Coc Explorer: call hi('CocHighlightText', {}, s:cdSelection, 'none', {}) call hi('CocExplorerIndentLine', s:cdCursorDark, {}, 'none', {}) - -" nvim-cmp -call hi('CmpItemAbbrDeprecated', s:cdGray, {}, 'none', {}) -call hi('CmpItemAbbrMatch', s:cdBlue, {}, 'none', {}) -call hi('CmpItemAbbrMatchFuzzy', s:cdBlue, {}, 'none', {}) -call hi('CmpItemKindVariable', s:cdLightBlue, {}, 'none', {}) -call hi('CmpItemKindInterface', s:cdLightBlue, {}, 'none', {}) -call hi('CmpItemKindText', s:cdLightBlue, {}, 'none', {}) -call hi('CmpItemKindFunction', s:cdPink, {}, 'none', {}) -call hi('CmpItemKindMethod ', s:cdPink, {}, 'none', {}) -call hi('CmpItemKindKeyword', s:cdFront, {}, 'none', {}) -call hi('CmpItemKindProperty', s:cdFront, {}, 'none', {}) -call hi('CmpItemKindUnit', s:cdFront, {}, 'none', {})