fix: add correct styling to highlight groups which previously relied on now deprecated fallback values

This commit is contained in:
myuwi 2022-10-20 22:43:36 +03:00
commit ca93d40d06

View file

@ -251,6 +251,8 @@ function M.get(config)
TSVariableBuiltin = { fg = p.love }, TSVariableBuiltin = { fg = p.love },
-- Treesitter -- Treesitter
['@annotation'] = { link = 'PreProc' },
['@attribute'] = { link = 'PreProc' },
['@boolean'] = { link = 'Boolean' }, ['@boolean'] = { link = 'Boolean' },
['@character'] = { link = 'Character' }, ['@character'] = { link = 'Character' },
['@comment'] = { link = 'Comment' }, ['@comment'] = { link = 'Comment' },
@ -265,6 +267,7 @@ function M.get(config)
['@keyword'] = { fg = p.pine }, ['@keyword'] = { fg = p.pine },
['@keyword.operator'] = { fg = p.subtle }, ['@keyword.operator'] = { fg = p.subtle },
['@label'] = { fg = p.foam }, ['@label'] = { fg = p.foam },
['@namespace'] = { link = 'Include' },
['@number'] = { link = 'Number' }, ['@number'] = { link = 'Number' },
['@operator'] = { fg = p.subtle }, ['@operator'] = { fg = p.subtle },
['@parameter'] = { fg = p.iris, style = styles.italic }, ['@parameter'] = { fg = p.iris, style = styles.italic },
@ -275,11 +278,24 @@ function M.get(config)
['@string'] = { link = 'String' }, ['@string'] = { link = 'String' },
['@string.escape'] = { fg = p.pine }, ['@string.escape'] = { fg = p.pine },
['@string.special'] = { link = '@string' }, ['@string.special'] = { link = '@string' },
['@symbol'] = { link = 'Identifier' },
['@tag'] = { fg = p.foam }, ['@tag'] = { fg = p.foam },
['@tag.attribute'] = { link = '@property' },
['@tag.delimiter'] = { fg = p.subtle }, ['@tag.delimiter'] = { fg = p.subtle },
['@text'] = { fg = p.text }, ['@text'] = { fg = p.text },
['@text.strong'] = { bold = true },
['@text.emphasis'] = { italic = true },
['@text.underline'] = { underline = true },
['@text.strike'] = { strikethrough = true },
['@text.math'] = { link = 'Special' },
['@text.environment'] = { link = 'Macro' },
['@text.environment.name'] = { link = 'Type' },
['@text.title'] = { fg = groups.headings.h1, style = 'bold' }, ['@text.title'] = { fg = groups.headings.h1, style = 'bold' },
['@text.uri'] = { fg = groups.link }, ['@text.uri'] = { fg = groups.link },
['@text.note'] = { link = 'SpecialComment' },
['@text.warning'] = { link = 'Todo' },
['@text.danger'] = { link = 'WarningMsg' },
['@todo'] = { link = 'Todo' },
['@type'] = { link = 'Type' }, ['@type'] = { link = 'Type' },
['@variable'] = { fg = p.text, style = styles.italic }, ['@variable'] = { fg = p.text, style = styles.italic },
['@variable.builtin'] = { fg = p.love }, ['@variable.builtin'] = { fg = p.love },