feat(treesitter)!: support nvim-treesitter@0.9.2 (#151)

Older version is no longer supported.
This commit is contained in:
Michael Chris Lopez
2024-01-20 23:38:29 +01:00
committed by GitHub
parent 22cfe4b28e
commit eed5f2d3e3
2 changed files with 305 additions and 217 deletions

View File

@@ -191,116 +191,163 @@ local function generate(p, opt)
DiagnosticUnderlineOk { fg = opt.colorize_diagnostic_underline_text and DiagnosticOk.fg or "NONE", gui = "undercurl", sp = DiagnosticOk.fg }, DiagnosticUnderlineOk { fg = opt.colorize_diagnostic_underline_text and DiagnosticOk.fg or "NONE", gui = "undercurl", sp = DiagnosticOk.fg },
-- Tree-sitter -- Tree-sitter
sym "@annotation" { PreProc }, sym "@variable" { Identifier },
sym "@attribute" { PreProc }, sym "@variable.builtin" { Number },
sym "@boolean" { Number }, sym "@variable.parameter" { sym "@variable" },
sym "@character" { Constant }, sym "@variable.member" { sym "@variable" },
sym "@character.special" { Special },
sym "@comment" { Comment }, sym "@constant" { Identifier, gui = "bold" },
sym "@conditional" { Statement }, sym "@constant.builtin" { Number },
sym "@constant" { Identifier, gui = "bold" }, sym "@constant.macro" { Number },
sym "@constant.builtin" { Number },
sym "@constant.macro" { Number }, sym "@module" { Number },
sym "@constructor" { Special }, sym "@module.builtin" { sym "@module" },
sym "@debug" { Special }, sym "@label" { Statement },
sym "@define" { PreProc },
sym "@exception" { Statement }, sym "@string" { Constant },
sym "@field" { Identifier }, sym "@string.documentation" { sym "@string" },
sym "@float" { Number }, sym "@string.regexp" { Constant },
sym "@function" { Function }, sym "@string.escape" { Special },
sym "@function.builtin" { Special }, sym "@string.special" { Special },
sym "@function.call" { Function }, sym "@string.special.symbol" { Identifier },
sym "@function.macro" { PreProc }, sym "@string.special.url" { sym "@string.special" },
sym "@include" { PreProc }, sym "@string.special.path" { sym "@string.special" },
sym "@keyword" { Statement },
sym "@keyword.function" { Statement }, sym "@character" { Constant },
sym "@keyword.operator" { Statement }, sym "@character.special" { Special },
sym "@keyword.return" { Statement },
sym "@keyword.coroutine" { Statement }, sym "@boolean" { Number },
sym "@label" { Statement }, sym "@number" { Number },
sym "@method" { Function }, sym "@number.float" { sym "@number" },
sym "@method.call" { Function },
sym "@namespace" { Special }, sym "@type" { Type },
sym "@none" { }, sym "@type.builtin" { sym "@type" },
sym "@number" { Number }, sym "@type.definition" { sym "@type" },
sym "@operator" { Statement }, sym "@type.qualifier" { sym "@type" },
sym "@parameter" { Identifier },
sym "@parameter.reference" { sym "@parameter" }, sym "@attribute" { PreProc },
sym "@preproc" { PreProc }, sym "@property" { Identifier },
sym "@property" { Identifier },
sym "@punctuation.bracket" { Delimiter }, sym "@function" { Function },
sym "@punctuation.delimiter" { Delimiter }, sym "@function.builtin" { Special },
sym "@punctuation.special" { Delimiter }, sym "@function.call" { sym "@function" },
sym "@repeat" { Statement }, sym "@function.macro" { PreProc },
sym "@storageclass" { Type },
sym "@string" { Constant }, sym "@function.method" { sym "@function" },
sym "@string.escape" { Special }, sym "@function.method.call" { sym "@function" },
sym "@string.regex" { Constant },
sym "@string.special" { Special }, sym "@constructor" { Special },
sym "@symbol" { Identifier }, sym "@operator" { Statement },
sym "@tag" { Special },
sym "@tag.attribute" { sym "@property" }, sym "@keyword.coroutine" { Statement },
sym "@tag.delimiter" { Delimiter }, sym "@keyword.function" { Statement },
sym "@text" { sym "@none" }, sym "@keyword.operator" { Statement },
sym "@text.danger" { Error }, sym "@keyword.import" { PreProc },
sym "@text.emphasis" { Italic }, sym "@keyword.storage" { Type },
sym "@text.environment" { PreProc }, sym "@keyword.repeat" { Statement },
sym "@text.environment.name" { Type }, sym "@keyword.return" { Statement },
sym "@text.literal" { Constant }, sym "@keyword.debug" { Special },
sym "@text.math" { Special }, sym "@keyword.exception" { Statement },
sym "@text.note" { DiagnosticInfo },
sym "@text.reference" { Constant }, sym "@keyword.conditional" { Statement },
sym "@text.strike" { gui = "strikethrough" }, sym "@keyword.conditional.ternary" { sym "@keyword.conditional" },
sym "@text.strong" { Bold }, sym "@keyword.directive" { PreProc },
sym "@text.title" { Title }, sym "@keyword.directive.define" { sym "@keyword.directive" },
sym "@text.underline" { Underlined },
sym "@text.uri" { Underlined }, sym "@punctuation.delimiter" { Delimiter },
sym "@text.warning" { WarningMsg }, sym "@punctuation.bracket" { Delimiter },
sym "@todo" { Todo }, sym "@punctuation.special" { Delimiter },
sym "@type" { Type },
sym "@type.builtin" { Type }, sym "@comment" { Comment },
sym "@type.definition" { Type }, sym "@comment.documentation" { sym "@comment" },
sym "@type.qualifier" { Type },
sym "@variable" { Identifier }, sym "@comment.error" { Error },
sym "@variable.builtin" { Number }, sym "@comment.warning" { WarningMsg },
sym "@comment.todo" { Todo },
sym "@comment.note" { DiagnosticInfo },
sym "@markup.strong" { Bold },
sym "@markup.itailc" { Italic },
sym "@markup.strikethrough" { gui = "strikethrough" },
sym "@markup.underline" { Underlined },
sym "@markup.heading" { Title },
sym "@markup.quote" { fg = p1.fg4 },
sym "@markup.math" { Special },
sym "@markup.environment" { PreProc },
sym "@markup.link" { Constant },
sym "@markup.link.label" { Special },
sym "@markup.link.url" { Constant },
sym "@markup.raw" { Constant },
sym "@markup.raw.block" { sym "@markup.raw" },
sym "@markup.list" { Special },
sym "@markup.list.checked" { sym "@markup.list" },
sym "@markup.list.unchecked" { sym "@markup.list" },
sym "@diff.plus" { fg = p.leaf },
sym "@diff.minus" { fg = p.rose },
sym "@diff.delta" { fg = p.water },
sym "@tag" { Special },
sym "@tag.attribute" { sym "@property" },
sym "@tag.delimiter" { Delimiter },
sym "@none" { },
sym "@punctuation.special.markdown" { Special }, sym "@punctuation.special.markdown" { Special },
sym "@string.escape.markdown" { SpecialKey }, sym "@string.escape.markdown" { SpecialKey },
sym "@text.reference.markdown" { Identifier, gui = "underline" }, sym "@markup.link.markdown" { Identifier, gui = "underline" },
sym "@text.emphasis.markdown" { Italic }, sym "@markup.italic.markdown" { Italic },
sym "@text.title.markdown" { Statement }, sym "@markup.title.markdown" { Statement },
sym "@text.literal.markdown" { Type }, sym "@markup.raw.markdown" { Type },
sym "@text.uri.markdown" { SpecialComment }, sym "@markup.link.url.markdown" { SpecialComment },
-- LSP Semantic Token Groups -- LSP Semantic Token Groups
sym "@lsp.type.boolean" { sym "@boolean" }, sym "@lsp.type.boolean" { sym "@boolean" },
sym "@lsp.type.builtinType" { sym "@type.builtin" }, sym "@lsp.type.builtinType" { sym "@type.builtin" },
sym "@lsp.type.comment" { sym "@comment" }, sym "@lsp.type.comment" { sym "@comment" },
sym "@lsp.type.enum" { sym "@type" }, sym "@lsp.type.decorator" { sym "@attribute" },
sym "@lsp.type.enumMember" { sym "@constant" }, sym "@lsp.type.deriveHelper" { sym "@attribute" },
sym "@lsp.type.escapeSequence" { sym "@string.escape" }, sym "@lsp.type.enum" { sym "@type" },
sym "@lsp.type.formatSpecifier" { sym "@punctuation.special" }, sym "@lsp.type.enumMember" { sym "@constant" },
sym "@lsp.type.keyword" { sym "@keyword" }, sym "@lsp.type.escapeSequence" { sym "@string.escape" },
sym "@lsp.type.namespace" { sym "@namespace" }, sym "@lsp.type.formatSpecifier" { sym "@markup.list" },
sym "@lsp.type.number" { sym "@number" }, sym "@lsp.type.generic" { sym "@variable" },
sym "@lsp.type.parameter" { sym "@parameter" }, sym "@lsp.type.interface" { sym "@type" },
sym "@lsp.type.property" { sym "@property" }, sym "@lsp.type.keyword" { Statement },
sym "@lsp.type.selfKeyword" { sym "@variable.builtin" }, sym "@lsp.type.lifetime" { sym "@keyword.storage" },
sym "@lsp.type.string.rust" { sym "@string" }, sym "@lsp.type.namespace" { sym "@module" },
sym "@lsp.type.typeAlias" { sym "@type.definition" }, sym "@lsp.type.number" { sym "@number" },
sym "@lsp.type.unresolvedReference" { gui = "undercurl", sp = Error.fg }, sym "@lsp.type.operator" { sym "@operator" },
sym "@lsp.type.variable" { sym "@variable" }, sym "@lsp.type.parameter" { sym "@variable.parameter" },
sym "@lsp.typemod.class.defaultLibrary" { sym "@type.builtin" }, sym "@lsp.type.property" { sym "@property" },
sym "@lsp.typemod.enum.defaultLibrary" { sym "@type.builtin" }, sym "@lsp.type.selfKeyword" { sym "@variable.builtin" },
sym "@lsp.typemod.enumMember.defaultLibrary" { sym "@constant.builtin" }, sym "@lsp.type.selfTypeKeyword" { sym "@variable.builtin" },
sym "@lsp.typemod.method.defaultLibrary" { sym "@function.builtin" }, sym "@lsp.type.string" { sym "@string" },
sym "@lsp.typemod.function.defaultLibrary" { sym "@function.builtin" }, sym "@lsp.type.typeAlias" { sym "@type.definition" },
sym "@lsp.typemod.macro.defaultLibrary" { sym "@function.builtin" }, sym "@lsp.type.unresolvedReference" { gui = "undercurl", sp = Error.fg },
sym "@lsp.typemod.keyword.async" { sym "@keyword.coroutine" }, sym "@lsp.type.variable" { },
sym "@lsp.typemod.operator.injected" { sym "@operator" }, sym "@lsp.typemod.class.defaultLibrary" { sym "@type.builtin" },
sym "@lsp.typemod.string.injected" { sym "@string" }, sym "@lsp.typemod.enum.defaultLibrary" { sym "@type.builtin" },
sym "@lsp.typemod.variable.defaultLibrary" { sym "@variable.builtin" }, sym "@lsp.typemod.enumMember.defaultLibrary" { sym "@constant.builtin" },
sym "@lsp.typemod.variable.injected" { sym "@variable" }, sym "@lsp.typemod.function.defaultLibrary" { sym "@function.builtin" },
sym "@lsp.typemod.keyword.async" { sym "@keyword.coroutine" },
sym "@lsp.typemod.keyword.injected" { Statement },
sym "@lsp.typemod.macro.defaultLibrary" { sym "@function.builtin" },
sym "@lsp.typemod.method.defaultLibrary" { sym "@function.builtin" },
sym "@lsp.typemod.operator.injected" { sym "@operator" },
sym "@lsp.typemod.string.injected" { sym "@string" },
sym "@lsp.typemod.struct.defaultLibrary" { sym "@type.builtin" },
sym "@lsp.typemod.type.defaultLibrary" { sym "@type" },
sym "@lsp.typemod.typeAlias.defaultLibrary" { sym "@type" },
sym "@lsp.typemod.variable.callable" { sym "@function" },
sym "@lsp.typemod.variable.defaultLibrary" { sym "@variable.builtin" },
sym "@lsp.typemod.variable.injected" { sym "@variable" },
sym "@lsp.typemod.variable.static" { sym "@constant" },
-- Syntax -- Syntax
diffAdded { fg = p.leaf }, diffAdded { fg = p.leaf },
@@ -312,9 +359,6 @@ local function generate(p, opt)
diffLine { fg = p.blossom, gui = "bold" }, diffLine { fg = p.blossom, gui = "bold" },
diffIndexLine { fg = p.wood }, diffIndexLine { fg = p.wood },
sym "@text.diff.add" { diffAdded },
sym "@text.diff.delete" { diffRemoved },
gitcommitOverflow { WarningMsg }, gitcommitOverflow { WarningMsg },
markdownUrl { SpecialComment }, markdownUrl { SpecialComment },

View File

@@ -188,119 +188,166 @@ local function generate(p, opt)
DiagnosticUnderlineWarn { fg = opt.colorize_diagnostic_underline_text and DiagnosticWarn.fg or "NONE", gui = "undercurl", sp = DiagnosticWarn.fg }, DiagnosticUnderlineWarn { fg = opt.colorize_diagnostic_underline_text and DiagnosticWarn.fg or "NONE", gui = "undercurl", sp = DiagnosticWarn.fg },
DiagnosticUnderlineInfo { fg = opt.colorize_diagnostic_underline_text and DiagnosticInfo.fg or "NONE", gui = "undercurl", sp = DiagnosticInfo.fg }, DiagnosticUnderlineInfo { fg = opt.colorize_diagnostic_underline_text and DiagnosticInfo.fg or "NONE", gui = "undercurl", sp = DiagnosticInfo.fg },
DiagnosticUnderlineHint { fg = opt.colorize_diagnostic_underline_text and DiagnosticHint.fg or "NONE", gui = "undercurl", sp = DiagnosticHint.fg }, DiagnosticUnderlineHint { fg = opt.colorize_diagnostic_underline_text and DiagnosticHint.fg or "NONE", gui = "undercurl", sp = DiagnosticHint.fg },
DiagnosticUnderlineOk { fg = opt.colorize_diagnostic_underline_text and DiagnosticOk.fg or "NONE", gui = "undercurl", sp = DiagnosticOk.fg }, DiagnosticUnderlineOk { fg = opt.colorize_diagnostic_underline_text and DiagnosticOk.fg or "NONE", gui = "undercurl", sp = DiagnosticOk.fg },
-- Tree-sitter -- Tree-sitter
sym "@annotation" { PreProc }, sym "@variable" { Identifier },
sym "@attribute" { PreProc }, sym "@variable.builtin" { Number },
sym "@boolean" { Number }, sym "@variable.parameter" { sym "@variable" },
sym "@character" { Constant }, sym "@variable.member" { sym "@variable" },
sym "@character.special" { Special },
sym "@comment" { Comment }, sym "@constant" { Identifier, gui = "bold" },
sym "@conditional" { Statement }, sym "@constant.builtin" { Number },
sym "@constant" { Identifier, gui = "bold" }, sym "@constant.macro" { Number },
sym "@constant.builtin" { Number },
sym "@constant.macro" { Number }, sym "@module" { Number },
sym "@constructor" { Special }, sym "@module.builtin" { sym "@module" },
sym "@debug" { Special }, sym "@label" { Statement },
sym "@define" { PreProc },
sym "@exception" { Statement }, sym "@string" { Constant },
sym "@field" { Identifier }, sym "@string.documentation" { sym "@string" },
sym "@float" { Number }, sym "@string.regexp" { Constant },
sym "@function" { Function }, sym "@string.escape" { Special },
sym "@function.builtin" { Special }, sym "@string.special" { Special },
sym "@function.call" { Function }, sym "@string.special.symbol" { Identifier },
sym "@function.macro" { PreProc }, sym "@string.special.url" { sym "@string.special" },
sym "@include" { PreProc }, sym "@string.special.path" { sym "@string.special" },
sym "@keyword" { Statement },
sym "@keyword.function" { Statement }, sym "@character" { Constant },
sym "@keyword.operator" { Statement }, sym "@character.special" { Special },
sym "@keyword.return" { Statement },
sym "@keyword.coroutine" { Statement }, sym "@boolean" { Number },
sym "@label" { Statement }, sym "@number" { Number },
sym "@method" { Function }, sym "@number.float" { sym "@number" },
sym "@method.call" { Function },
sym "@namespace" { Special }, sym "@type" { Type },
sym "@none" { }, sym "@type.builtin" { sym "@type" },
sym "@number" { Number }, sym "@type.definition" { sym "@type" },
sym "@operator" { Statement }, sym "@type.qualifier" { sym "@type" },
sym "@parameter" { Identifier },
sym "@parameter.reference" { sym "@parameter" }, sym "@attribute" { PreProc },
sym "@preproc" { PreProc }, sym "@property" { Identifier },
sym "@property" { Identifier },
sym "@punctuation.bracket" { Delimiter }, sym "@function" { Function },
sym "@punctuation.delimiter" { Delimiter }, sym "@function.builtin" { Special },
sym "@punctuation.special" { Delimiter }, sym "@function.call" { sym "@function" },
sym "@repeat" { Statement }, sym "@function.macro" { PreProc },
sym "@storageclass" { Type },
sym "@string" { Constant }, sym "@function.method" { sym "@function" },
sym "@string.escape" { Special }, sym "@function.method.call" { sym "@function" },
sym "@string.regex" { Constant },
sym "@string.special" { Special }, sym "@constructor" { Special },
sym "@symbol" { Identifier }, sym "@operator" { Statement },
sym "@tag" { Special },
sym "@tag.attribute" { sym "@property" }, sym "@keyword.coroutine" { Statement },
sym "@tag.delimiter" { Delimiter }, sym "@keyword.function" { Statement },
sym "@text" { sym "@none" }, sym "@keyword.operator" { Statement },
sym "@text.danger" { Error }, sym "@keyword.import" { PreProc },
sym "@text.emphasis" { Italic }, sym "@keyword.storage" { Type },
sym "@text.environment" { PreProc }, sym "@keyword.repeat" { Statement },
sym "@text.environment.name" { Type }, sym "@keyword.return" { Statement },
sym "@text.literal" { Constant }, sym "@keyword.debug" { Special },
sym "@text.math" { Special }, sym "@keyword.exception" { Statement },
sym "@text.note" { DiagnosticInfo },
sym "@text.reference" { Constant }, sym "@keyword.conditional" { Statement },
sym "@text.strike" { gui = "strikethrough" }, sym "@keyword.conditional.ternary" { sym "@keyword.conditional" },
sym "@text.strong" { Bold }, sym "@keyword.directive" { PreProc },
sym "@text.title" { Title }, sym "@keyword.directive.define" { sym "@keyword.directive" },
sym "@text.underline" { Underlined },
sym "@text.uri" { Underlined }, sym "@punctuation.delimiter" { Delimiter },
sym "@text.warning" { WarningMsg }, sym "@punctuation.bracket" { Delimiter },
sym "@text.todo" { Todo }, sym "@punctuation.special" { Delimiter },
sym "@type" { Type },
sym "@type.builtin" { Type }, sym "@comment" { Comment },
sym "@type.definition" { Type }, sym "@comment.documentation" { sym "@comment" },
sym "@type.qualifier" { Type },
sym "@variable" { Identifier }, sym "@comment.error" { Error },
sym "@variable.builtin" { Number }, sym "@comment.warning" { WarningMsg },
sym "@comment.todo" { Todo },
sym "@comment.note" { DiagnosticInfo },
sym "@markup.strong" { Bold },
sym "@markup.itailc" { Italic },
sym "@markup.strikethrough" { gui = "strikethrough" },
sym "@markup.underline" { Underlined },
sym "@markup.heading" { Title },
sym "@markup.quote" { fg = p1.fg4 },
sym "@markup.math" { Special },
sym "@markup.environment" { PreProc },
sym "@markup.link" { Constant },
sym "@markup.link.label" { Special },
sym "@markup.link.url" { Constant },
sym "@markup.raw" { Constant },
sym "@markup.raw.block" { sym "@markup.raw" },
sym "@markup.list" { Special },
sym "@markup.list.checked" { sym "@markup.list" },
sym "@markup.list.unchecked" { sym "@markup.list" },
sym "@diff.plus" { fg = p.leaf },
sym "@diff.minus" { fg = p.rose },
sym "@diff.delta" { fg = p.water },
sym "@tag" { Special },
sym "@tag.attribute" { sym "@property" },
sym "@tag.delimiter" { Delimiter },
sym "@none" { },
sym "@punctuation.special.markdown" { Special }, sym "@punctuation.special.markdown" { Special },
sym "@string.escape.markdown" { SpecialKey }, sym "@string.escape.markdown" { SpecialKey },
sym "@text.reference.markdown" { Identifier, gui = "underline" }, sym "@markup.link.markdown" { Identifier, gui = "underline" },
sym "@text.emphasis.markdown" { Italic }, sym "@markup.italic.markdown" { Italic },
sym "@text.title.markdown" { Statement }, sym "@markup.title.markdown" { Statement },
sym "@text.literal.markdown" { Type }, sym "@markup.raw.markdown" { Type },
sym "@text.uri.markdown" { SpecialComment }, sym "@markup.link.url.markdown" { SpecialComment },
-- LSP Semantic Token Groups -- LSP Semantic Token Groups
sym "@lsp.type.boolean" { sym "@boolean" }, sym "@lsp.type.boolean" { sym "@boolean" },
sym "@lsp.type.builtinType" { sym "@type.builtin" }, sym "@lsp.type.builtinType" { sym "@type.builtin" },
sym "@lsp.type.comment" { sym "@comment" }, sym "@lsp.type.comment" { sym "@comment" },
sym "@lsp.type.enum" { sym "@type" }, sym "@lsp.type.decorator" { sym "@attribute" },
sym "@lsp.type.enumMember" { sym "@constant" }, sym "@lsp.type.deriveHelper" { sym "@attribute" },
sym "@lsp.type.escapeSequence" { sym "@string.escape" }, sym "@lsp.type.enum" { sym "@type" },
sym "@lsp.type.formatSpecifier" { sym "@punctuation.special" }, sym "@lsp.type.enumMember" { sym "@constant" },
sym "@lsp.type.keyword" { sym "@keyword" }, sym "@lsp.type.escapeSequence" { sym "@string.escape" },
sym "@lsp.type.namespace" { sym "@namespace" }, sym "@lsp.type.formatSpecifier" { sym "@markup.list" },
sym "@lsp.type.number" { sym "@number" }, sym "@lsp.type.generic" { sym "@variable" },
sym "@lsp.type.parameter" { sym "@parameter" }, sym "@lsp.type.interface" { sym "@type" },
sym "@lsp.type.property" { sym "@property" }, sym "@lsp.type.keyword" { Statement },
sym "@lsp.type.selfKeyword" { sym "@variable.builtin" }, sym "@lsp.type.lifetime" { sym "@keyword.storage" },
sym "@lsp.type.string.rust" { sym "@string" }, sym "@lsp.type.namespace" { sym "@module" },
sym "@lsp.type.typeAlias" { sym "@type.definition" }, sym "@lsp.type.number" { sym "@number" },
sym "@lsp.type.unresolvedReference" { gui = "undercurl", sp = Error.fg }, sym "@lsp.type.operator" { sym "@operator" },
sym "@lsp.type.variable" { sym "@variable" }, sym "@lsp.type.parameter" { sym "@variable.parameter" },
sym "@lsp.typemod.class.defaultLibrary" { sym "@type.builtin" }, sym "@lsp.type.property" { sym "@property" },
sym "@lsp.typemod.enum.defaultLibrary" { sym "@type.builtin" }, sym "@lsp.type.selfKeyword" { sym "@variable.builtin" },
sym "@lsp.typemod.enumMember.defaultLibrary" { sym "@constant.builtin" }, sym "@lsp.type.selfTypeKeyword" { sym "@variable.builtin" },
sym "@lsp.typemod.method.defaultLibrary" { sym "@function.builtin" }, sym "@lsp.type.string" { sym "@string" },
sym "@lsp.typemod.function.defaultLibrary" { sym "@function.builtin" }, sym "@lsp.type.typeAlias" { sym "@type.definition" },
sym "@lsp.typemod.macro.defaultLibrary" { sym "@function.builtin" }, sym "@lsp.type.unresolvedReference" { gui = "undercurl", sp = Error.fg },
sym "@lsp.typemod.keyword.async" { sym "@keyword.coroutine" }, sym "@lsp.type.variable" { },
sym "@lsp.typemod.operator.injected" { sym "@operator" }, sym "@lsp.typemod.class.defaultLibrary" { sym "@type.builtin" },
sym "@lsp.typemod.string.injected" { sym "@string" }, sym "@lsp.typemod.enum.defaultLibrary" { sym "@type.builtin" },
sym "@lsp.typemod.variable.defaultLibrary" { sym "@variable.builtin" }, sym "@lsp.typemod.enumMember.defaultLibrary" { sym "@constant.builtin" },
sym "@lsp.typemod.variable.injected" { sym "@variable" }, sym "@lsp.typemod.function.defaultLibrary" { sym "@function.builtin" },
sym "@lsp.typemod.keyword.async" { sym "@keyword.coroutine" },
sym "@lsp.typemod.keyword.injected" { Statement },
sym "@lsp.typemod.macro.defaultLibrary" { sym "@function.builtin" },
sym "@lsp.typemod.method.defaultLibrary" { sym "@function.builtin" },
sym "@lsp.typemod.operator.injected" { sym "@operator" },
sym "@lsp.typemod.string.injected" { sym "@string" },
sym "@lsp.typemod.struct.defaultLibrary" { sym "@type.builtin" },
sym "@lsp.typemod.type.defaultLibrary" { sym "@type" },
sym "@lsp.typemod.typeAlias.defaultLibrary" { sym "@type" },
sym "@lsp.typemod.variable.callable" { sym "@function" },
sym "@lsp.typemod.variable.defaultLibrary" { sym "@variable.builtin" },
sym "@lsp.typemod.variable.injected" { sym "@variable" },
sym "@lsp.typemod.variable.static" { sym "@constant" },
-- Syntax -- Syntax
diffAdded { fg = p.leaf }, diffAdded { fg = p.leaf },
@@ -312,9 +359,6 @@ local function generate(p, opt)
diffLine { fg = p.blossom, gui = "bold" }, diffLine { fg = p.blossom, gui = "bold" },
diffIndexLine { fg = p.wood }, diffIndexLine { fg = p.wood },
sym "@text.diff.add" { diffAdded },
sym "@text.diff.delete" { diffRemoved },
gitcommitOverflow { WarningMsg }, gitcommitOverflow { WarningMsg },
markdownUrl { SpecialComment }, markdownUrl { SpecialComment },