From 2c11cee108fd2cdcdb0e1d814880494774c3c8ec Mon Sep 17 00:00:00 2001 From: mofiqul Date: Sun, 14 Mar 2021 16:04:28 +0530 Subject: [PATCH 1/2] Neovim Treesitter support Neovim Treesitter support Todo highlight with cdPink CocExplorer indentline highlight --- colors/codedark.vim | 65 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/colors/codedark.vim b/colors/codedark.vim index 15c8f9f..121ce87 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -126,6 +126,9 @@ if g:codedark_conservative | let s:cdYellow = s:cdFront | endif let s:cdPink = {'gui': '#C586C0', 'cterm': s:cterm0E, 'cterm256': '176'} if g:codedark_conservative | let s:cdPink = s:cdBlue | endif + + + " Vim editor colors " hi(GROUP, FOREGROUND, BACKGROUND, ATTRIBUTE, SPECIAL) call hi('Normal', s:cdFront, s:cdBack, 'none', {}) @@ -219,13 +222,71 @@ call hi('Ignore', s:cdFront, {}, 'none', {}) call hi('Error', s:cdRed, s:cdBack, 'undercurl', s:cdRed) -call hi('Todo', s:cdNone, s:cdLeftMid, 'none', {}) +call hi('Todo', s:cdPink, s:cdLeftMid, 'none', {}) call hi('SpellBad', s:cdRed, s:cdBack, 'undercurl', s:cdRed) 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) + +" Neovim Treesitter: +call hi('TSError', s:cdRed, {}, 'none', {}) +call hi('TSPunctDelimiter', s:cdFront, {}, 'none', {}) +call hi('TSPunctBracket', s:cdFront, {}, 'none', {}) +call hi('TSPunctSpecial', s:cdFront, {}, 'none', {}) +" Constant +call hi('TSConstant', s:cdYellow, {}, 'none', {}) +call hi('TSConstBuiltin', s:cdBlue, {}, 'none', {}) +call hi('TSConstMacro', s:cdBlueGreen, {}, 'none', {}) +call hi('TSStringRegex', s:cdOrange, {}, 'none', {}) +call hi('TSString', s:cdOrange, {}, 'none', {}) +call hi('TSStringEscape', s:cdYellowOrange, {}, 'none', {}) +call hi('TSCharacter', s:cdOrange, {}, 'none', {}) +call hi('TSNumber', s:cdLightGreen, {}, 'none', {}) +call hi('TSBoolean', s:cdBlue, {}, 'none', {}) +call hi('TSFloat', s:cdLightGreen, {}, 'none', {}) +call hi('TSAnnotation', s:cdYellow, {}, 'none', {}) +call hi('TSAttribute', s:cdBlueGreen, {}, 'none', {}) +call hi('TSNamespace', s:cdBlueGreen, {}, 'none', {}) +" Functions +call hi('TSFuncBuiltin', s:cdYellow, {}, 'none', {}) +call hi('TSFunction', s:cdYellow, {}, 'none', {}) +call hi('TSFuncMacro', s:cdYellow, {}, 'none', {}) +call hi('TSParameter', s:cdLightBlue, {}, 'none', {}) +call hi('TSParameterReference', s:cdLightBlue, {}, 'none', {}) +call hi('TSMethod', s:cdYellow, {}, 'none', {}) +call hi('TSField', s:cdLightBlue, {}, 'none', {}) +call hi('TSProperty', s:cdLightBlue, {}, 'none', {}) +call hi('TSConstructor', s:cdBlueGreen, {}, 'none', {}) +" Keywords +call hi('TSConditional', s:cdPink, {}, 'none', {}) +call hi('TSRepeat', s:cdPink, {}, 'none', {}) +call hi('TSLabel', s:cdLightBlue, {}, 'none', {}) +call hi('TSKeyword', s:cdBlue, {}, 'none', {}) +call hi('TSKeywordFunction', s:cdPink, {}, 'none', {}) +call hi('TSKeywordOperator', s:cdBlue, {}, 'none', {}) +call hi('TSOperator', s:cdFront, {}, 'none', {}) +call hi('TSException', s:cdPink, {}, 'none', {}) +call hi('TSType', s:cdBlueGreen, {}, 'none', {}) +call hi('TSTypeBuiltin', s:cdBlue, {}, 'none', {}) +call hi('TSStructure', s:cdLightBlue, {}, 'none', {}) +call hi('TSInclude', s:cdPink, {}, 'none', {}) +" Variable +call hi('TSVariable', s:cdLightBlue, {}, 'none', {}) +call hi('TSVariableBuiltin', s:cdLightBlue, {}, 'none', {}) +" Text +call hi('TSText', s:cdYellowOrange, {}, 'none', {}) +call hi('TSStrong', s:cdYellowOrange, {}, 'none', {}) +call hi('TSEmphasis', s:cdYellowOrange, {}, 'none', {}) +call hi('TSUnderline', s:cdYellowOrange, {}, 'none', {}) +call hi('TSTitle', s:cdYellowOrange, {}, 'none', {}) +call hi('TSLiteral', s:cdYellowOrange, {}, 'none', {}) +call hi('TSURI', s:cdYellowOrange, {}, 'none', {}) +" Tags +call hi('TSTag', s:cdBlue, {}, 'none', {}) +call hi('TSTagDelimiter', s:cdGray, {}, 'none', {}) + " Markdown: call hi('markdownBold', s:cdBlue, {}, 'bold', {}) call hi('markdownCode', s:cdOrange, {}, 'none', {}) @@ -468,3 +529,5 @@ call hi('sqlOperator', s:cdPink, {}, 'none', {}) call hi('yamlKey', s:cdBlue, {}, 'none', {}) call hi('yamlConstant', s:cdBlue, {}, 'none', {}) +" Coc Explorer: +call hi('CocExplorerIndentLine', s:cdCursorDark, {}, 'none', {}) From 1960da3b317ed03d8207819e5ec66ad0f5d3ef32 Mon Sep 17 00:00:00 2001 From: mofiqul Date: Sun, 4 Apr 2021 20:02:37 +0530 Subject: [PATCH 2/2] Neovim Tree-sitter support --- colors/codedark.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/colors/codedark.vim b/colors/codedark.vim index 121ce87..62b4c76 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -126,9 +126,6 @@ if g:codedark_conservative | let s:cdYellow = s:cdFront | endif let s:cdPink = {'gui': '#C586C0', 'cterm': s:cterm0E, 'cterm256': '176'} if g:codedark_conservative | let s:cdPink = s:cdBlue | endif - - - " Vim editor colors " hi(GROUP, FOREGROUND, BACKGROUND, ATTRIBUTE, SPECIAL) call hi('Normal', s:cdFront, s:cdBack, 'none', {}) @@ -222,7 +219,7 @@ call hi('Ignore', s:cdFront, {}, 'none', {}) call hi('Error', s:cdRed, s:cdBack, 'undercurl', s:cdRed) -call hi('Todo', s:cdPink, s:cdLeftMid, 'none', {}) +call hi('Todo', s:cdNone, s:cdLeftMid, 'none', {}) call hi('SpellBad', s:cdRed, s:cdBack, 'undercurl', s:cdRed) call hi('SpellCap', s:cdRed, s:cdBack, 'undercurl', s:cdRed)