From 3a638383d2eac2cade8b0e8771709575e0b089ed Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Sat, 20 May 2023 03:06:30 -0400 Subject: [PATCH] feat(lsp): add more highlights (#379) --- lua/tokyonight/theme.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index 60a5ea1..dc78edd 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -263,6 +263,8 @@ function M.setup() ["@tag.delimiter.tsx"] = { fg = util.darken(c.blue, 0.7) }, -- LSP Semantic Token Groups + ["@lsp.type.boolean"] = { link = "@boolean" }, + ["@lsp.type.builtinType"] = { link = "@type.builtin" }, ["@lsp.type.comment"] = { link = "@comment" }, ["@lsp.type.enum"] = { link = "@type" }, ["@lsp.type.enumMember"] = { link = "@constant" }, @@ -271,11 +273,16 @@ function M.setup() ["@lsp.type.interface"] = { fg = util.lighten(c.blue1, 0.7) }, ["@lsp.type.keyword"] = { link = "@keyword" }, ["@lsp.type.namespace"] = { link = "@namespace" }, + ["@lsp.type.number"] = { link = "@number" }, ["@lsp.type.operator"] = { link = "@operator" }, ["@lsp.type.parameter"] = { link = "@parameter" }, ["@lsp.type.property"] = { link = "@property" }, ["@lsp.type.selfKeyword"] = { link = "@variable.builtin" }, + ["@lsp.type.string.rust"] = { link = "@string" }, + ["@lsp.type.typeAlias"] = { link = "@type.definition" }, + ["@lsp.type.unresolvedReference"] = { undercurl = true, sp = c.error }, ["@lsp.type.variable"] = {}, -- use treesitter styles for regular variables + ["@lsp.typemod.class.defaultLibrary"] = { link = "@type.builtin" }, ["@lsp.typemod.enum.defaultLibrary"] = { link = "@type.builtin" }, ["@lsp.typemod.enumMember.defaultLibrary"] = { link = "@constant.builtin" }, ["@lsp.typemod.function.defaultLibrary"] = { link = "@function.builtin" },