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