nvim: yolokai: Update syntax highlighting

- TSStructure was deprecated
- TSVariable/TSVariableBuiltin/TSNamespace/TSComment seem to be newly
  introduced
- Use a different color for functions and identifiers
- Reorder alphabetically. Easier to compare against upstream doc
This commit is contained in:
Sanchayan Maity 2021-01-04 15:58:19 +05:30
parent 6336685b5e
commit 6929c30e2d

View file

@ -69,7 +69,7 @@ local highlight_groups = {
--[[ 4.1.2. Identifiers]] --[[ 4.1.2. Identifiers]]
Identifier = {bg=NONE, fg=green, style=NONE}, Identifier = {bg=NONE, fg=green, style=NONE},
Function = {bg=NONE, fg=green, style=NONE}, Function = {bg=NONE, fg=darkgreen, style=NONE},
--[[ 4.1.3. Syntax]] --[[ 4.1.3. Syntax]]
Statement = {bg=NONE, fg=pink, style=NONE }, Statement = {bg=NONE, fg=pink, style=NONE },
@ -556,48 +556,54 @@ local highlight_groups = {
NERDTreeLinkTarget = 'Tag' , NERDTreeLinkTarget = 'Tag' ,
--[[ 4.4.8. nvim-treesitter ]] --[[ 4.4.8. nvim-treesitter ]]
TSError = 'Error', TSAnnotation = 'SpecialChar',
TSPunctDelimiter = 'Delimiter', TSAttribute = 'Normal',
TSPunctBracket = 'Delimiter', TSBoolean = 'Boolean',
TSPunctSpecial = 'Special', TSCharacter = 'Character',
TSConstant = 'Constant', TSComment = 'Comment',
TSConstBuiltin = 'Type', TSConstructor = 'Typedef',
TSConstMacro = 'Define', TSConditional = 'Conditional',
TSString = 'String', TSConstant = 'Constant',
TSStringRegex = 'String', TSConstBuiltin = 'Type',
TSStringEscape = 'SpecialChar', TSConstMacro = 'Define',
TSCharacter = 'Character', TSError = 'Error',
TSNumber = 'Number', TSException = 'Exception',
TSBoolean = 'Boolean', TSField = 'Identifier',
TSFloat = 'Float', TSFloat = 'Float',
TSFunction = 'Function', TSFunction = 'Function',
TSFuncBuiltin = 'Special', TSFuncBuiltin = 'Special',
TSFuncMacro = 'Macro', TSFuncMacro = 'Macro',
TSParameter = 'Identifier', TSInclude = 'Include',
TSKeyword = 'Keyword',
TSKeywordFunction = 'Keyword',
TSLabel = 'Label',
TSMethod = 'Function',
TSNamespace = 'Include',
TSNone = 'NONE',
TSNumber = 'Number',
TSOperator = 'Operator',
TSParameter = 'Identifier',
TSParameterReference = 'Type', TSParameterReference = 'Type',
TSMethod = 'Function', TSProperty = 'Identifier',
TSField = 'Identifier', TSPunctDelimiter = 'Delimiter',
TSProperty = 'Identifier', TSPunctBracket = 'Delimiter',
TSConstructor = 'Type', TSPunctSpecial = 'Special',
TSConditional = 'Conditional', TSRepeat = 'Repeat',
TSRepeat = 'Repeat', TSString = 'String',
TSLabel = 'Label', TSStringRegex = 'String',
TSOperator = 'Operator', TSStringEscape = 'SpecialChar',
TSKeyword = 'Keyword', TSTag = 'Tag',
TSKeywordFunction = 'Keyword', TSTagDelimiter = 'Delimiter',
TSException = 'Exception', TSText = 'String',
TSType = 'Type', TSEmphasis = 'Underlined',
TSTypeBuiltin = 'Type', TSUnderline = 'Underlined',
TSStructure = 'Structure', TSTitle = 'Comment',
TSInclude = 'Include', TSLiteral = 'Character',
TSAnnotation = 'SpecialChar', TSURI = 'Tag',
TSText = 'String', TSType = 'Type',
TSStrong = 'Special', TSTypeBuiltin = 'Type',
TSEmphasis = 'Underlined', TSVariable = 'Identifier',
TSUnderline = 'Underlined', TSVariableBuiltin = 'Identifier',
TSTitle = 'Comment',
TSLiteral = 'Character',
TSURI = 'Tag',
--[[ 4.4.9 SearchLight ]] --[[ 4.4.9 SearchLight ]]
SearchLight = {bg=black, fg=orange, style={'bold', 'italic', 'underline'}}, SearchLight = {bg=black, fg=orange, style={'bold', 'italic', 'underline'}},