Skip to content

Commit

Permalink
feat(highlights): improve semantic tokens highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath committed Feb 19, 2024
1 parent 1509a83 commit 7378b61
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions lua/sweetie/highlights/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,29 @@ lsp.setup = function(palette)
DiagnosticVirtualTextError = { link = "ErrorMsg" },

["@lsp.type.type"] = { link = "@type" },
["@lsp.type.enum"] = { link = "Enum" },
["@lsp.type.class"] = { link = "Class" },
["@lsp.type.enum"] = { link = "@type" },
["@lsp.type.class"] = { link = "Structure" },
["@lsp.type.macro"] = { link = "@macro" },
["@lsp.type.number"] = { link = "@number" },
["@lsp.type.method"] = { link = "@method" },
["@lsp.type.struct"] = { link = "Structure" },
["@lsp.type.struct"] = { link = "@constructor" },
["@lsp.type.boolean"] = { link = "@boolean" },
["@lsp.type.comment"] = { link = "@comment" },
["@lsp.type.keyword"] = { link = "@keyword" },
["@lsp.type.variable"] = { link = "@variable" },
["@lsp.type.property"] = { link = "@property" },
["@lsp.type.function"] = { link = "@function" },
["@lsp.type.parameter"] = { link = "@identifier" },
["@lsp.type.decorator"] = { link = "@function" },
["@lsp.type.interface"] = { link = "Structure" },
["@lsp.type.decorator"] = { link = "@attribute" },
["@lsp.type.interface"] = { link = "@constructor" },
["@lsp.type.namespace"] = { link = "@namespace" },
["@lsp.type.typeAlias"] = { link = "@type.definition" },
["@lsp.type.enumMember"] = { link = "@constant" },
["@lsp.type.builtinType"] = { link = "@type.builtin" },
["@lsp.type.escapeSequence"] = { link = "@string.escape" },
["@lsp.type.formatSpecifier"] = { link = "@punctuation.special" },
["@lsp.type.unresolvedReference"] = { link = "@error" },
["@lsp.mod.deprecated"] = { strikethrough = true },
}
end

Expand Down

0 comments on commit 7378b61

Please sign in to comment.