Link most treesitter @* to normal TS Colors

This commit is contained in:
Eric Xiao 2022-12-01 21:08:02 -08:00
commit d10d347a0f

View file

@ -281,55 +281,55 @@ function M.get()
TSVariable = {fg = p.text, style = styles.italic}, TSVariable = {fg = p.text, style = styles.italic},
TSVariableBuiltin = {fg = p.love}, TSVariableBuiltin = {fg = p.love},
-- Treesitter -- Treesitter
['@annotation'] = { link = 'PreProc' }, ['@annotation'] = {link = 'PreProc'},
['@attribute'] = { link = 'PreProc' }, ['@attribute'] = {link = 'PreProc'},
['@boolean'] = { link = 'Boolean' }, ['@boolean'] = {link = 'TSBoolean'},
['@character'] = { link = 'Character' }, ['@character'] = {link = 'TSCharacter'},
['@comment'] = { link = 'Comment' }, ['@comment'] = {link = 'TSComment'},
['@conditional'] = { link = 'Conditional' }, ['@conditional'] = {link = 'Conditional'},
['@constant'] = { fg = p.foam }, ['@constant'] = {link = 'TSConstant'},
['@constant.builtin'] = { fg = p.love }, ['@constant.builtin'] = {link = 'TSConstBuiltin'},
['@constructor'] = { fg = p.foam }, ['@constructor'] = {link = 'TSConstructor'},
['@field'] = { fg = p.foam }, ['@field'] = {link = 'TSField'},
['@function'] = { fg = p.rose }, ['@function'] = {link = 'TSFunction'},
['@function.builtin'] = { fg = p.love }, ['@function.builtin'] = {link = 'TSFuncBuiltin'},
['@include'] = { fg = p.pine }, ['@include'] = {link = 'TSInclude'},
['@keyword'] = { fg = p.pine }, ['@keyword'] = {link = 'TSKeyword'},
['@keyword.operator'] = { fg = p.subtle }, ['@keyword.operator'] = {link = 'TSKeywordOperator'},
['@label'] = { fg = p.foam }, ['@label'] = {link = 'TSLabel'},
['@namespace'] = { link = 'Include' }, ['@namespace'] = {link = 'Include'},
['@number'] = { link = 'Number' }, ['@number'] = {link = 'TSNumber'},
['@operator'] = { fg = p.subtle }, ['@operator'] = {link = 'TSOperator'},
['@parameter'] = { fg = p.iris, style = styles.italic }, ['@parameter'] = {link = 'TSParameter'},
['@property'] = { fg = p.iris, style = styles.italic }, ['@property'] = {link = 'TSProperty'},
['@punctuation.bracket'] = { fg = groups.punctuation }, ['@punctuation.bracket'] = {fg = groups.punctuation},
['@punctuation.delimiter'] = { fg = groups.punctuation }, ['@punctuation.delimiter'] = {fg = groups.punctuation},
['@punctuation.special'] = { fg = groups.punctuation }, ['@punctuation.special'] = {fg = groups.punctuation},
['@string'] = { link = 'String' }, ['@string'] = {link = 'TSString'},
['@string.escape'] = { fg = p.pine }, ['@string.escape'] = {link = 'TSStringEscape'},
['@string.special'] = { link = '@string' }, ['@string.special'] = {link = 'TSStringSpecial'},
['@symbol'] = { link = 'Identifier' }, ['@symbol'] = {link = 'Identifier'},
['@tag'] = { fg = p.foam }, ['@tag'] = {link = 'TSTag'},
['@tag.attribute'] = { link = '@property' }, ['@tag.attribute'] = {link = '@property'},
['@tag.delimiter'] = { fg = p.subtle }, ['@tag.delimiter'] = {link = 'TSTagDelimiter'},
['@text'] = { fg = p.text }, ['@text'] = {link = 'TSText'},
['@text.strong'] = { bold = true }, ['@text.strong'] = {bold = true},
['@text.emphasis'] = { italic = true }, ['@text.emphasis'] = {italic = true},
['@text.underline'] = { underline = true }, ['@text.underline'] = {underline = true},
['@text.strike'] = { strikethrough = true }, ['@text.strike'] = {strikethrough = true},
['@text.math'] = { link = 'Special' }, ['@text.math'] = {link = 'Special'},
['@text.environment'] = { link = 'Macro' }, ['@text.environment'] = {link = 'Macro'},
['@text.environment.name'] = { link = 'Type' }, ['@text.environment.name'] = {link = 'Type'},
['@text.title'] = { fg = groups.headings.h1, style = 'bold' }, ['@text.title'] = {link = 'TSTitle'},
['@text.uri'] = { fg = groups.link }, ['@text.uri'] = {fg = groups.link},
['@text.note'] = { link = 'SpecialComment' }, ['@text.note'] = {link = 'SpecialComment'},
['@text.warning'] = { link = 'Todo' }, ['@text.warning'] = {link = 'Todo'},
['@text.danger'] = { link = 'WarningMsg' }, ['@text.danger'] = {link = 'WarningMsg'},
['@todo'] = { link = 'Todo' }, ['@todo'] = {link = 'Todo'},
['@type'] = { link = 'Type' }, ['@type'] = {link = 'Type'},
['@variable'] = { fg = p.text, style = styles.italic }, ['@variable'] = {link = 'TSVariable'},
['@variable.builtin'] = { fg = p.love }, ['@variable.builtin'] = {link = 'TSVariableBuiltin'},
-- vim.lsp.buf.document_highlight() -- vim.lsp.buf.document_highlight()
LspReferenceText = {bg = p.highlight_med}, LspReferenceText = {bg = p.highlight_med},