feat(semantic_tokens): slightly different style for interfaces and default types

This commit is contained in:
Folke Lemaitre 2023-04-18 10:03:07 +02:00
parent 6ebd35868f
commit 3af1264567
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040

View File

@ -260,13 +260,14 @@ function M.setup()
["@lsp.type.comment"] = { link = "@comment" }, ["@lsp.type.comment"] = { link = "@comment" },
["@lsp.type.enum"] = { link = "@type" }, ["@lsp.type.enum"] = { link = "@type" },
["@lsp.type.enumMember"] = { link = "@constant" }, ["@lsp.type.enumMember"] = { link = "@constant" },
["@lsp.type.interface"] = { link = "@type" }, ["@lsp.type.interface"] = { fg = util.lighten(c.blue1, 0.7) },
["@lsp.type.keyword"] = { link = "@keyword" }, ["@lsp.type.keyword"] = { link = "@keyword" },
["@lsp.type.namespace"] = { link = "@namespace" }, ["@lsp.type.namespace"] = { link = "@namespace" },
["@lsp.type.parameter"] = { link = "@parameter" }, ["@lsp.type.parameter"] = { link = "@parameter" },
["@lsp.type.property"] = { link = "@property" }, ["@lsp.type.property"] = { link = "@property" },
["@lsp.type.variable"] = {}, -- use treesitter styles for regular variables ["@lsp.type.variable"] = {}, -- use treesitter styles for regular variables
["@lsp.typemod.method.defaultLibrary"] = { link = "@function.builtin" }, ["@lsp.typemod.method.defaultLibrary"] = { link = "@function.builtin" },
["@lsp.typemod.type.defaultLibrary"] = { fg = util.darken(c.blue1, 0.7) },
["@lsp.typemod.function.defaultLibrary"] = { link = "@function.builtin" }, ["@lsp.typemod.function.defaultLibrary"] = { link = "@function.builtin" },
["@lsp.typemod.operator.injected"] = { link = "@operator" }, ["@lsp.typemod.operator.injected"] = { link = "@operator" },
["@lsp.typemod.string.injected"] = { link = "@string" }, ["@lsp.typemod.string.injected"] = { link = "@string" },