From 3ebc29df627c5cf70eb6acb8f0843c9ea9cf6348 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 8 Mar 2023 14:12:51 +0100 Subject: [PATCH] fix(semantic_tokens): dont use @lsp.type.variable. Added builtin variable support --- lua/tokyonight/theme.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index 9b4a4d2..952c39f 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -260,8 +260,9 @@ function M.setup() ["@lsp.type.namespace"] = { link = "@namespace" }, ["@lsp.type.parameter"] = { link = "@parameter" }, ["@lsp.type.property"] = { link = "@property" }, - ["@lsp.type.variable"] = { link = "@variable" }, + ["@lsp.type.variable"] = {}, -- use treesitter styles for regular variables ["@lsp.typemod.function.defaultLibrary"] = { link = "Special" }, + ["@lsp.typemod.variable.defaultLibrary"] = { link = "@variable.builtin" }, -- NOTE: maybe add these with distinct highlights? -- ["@lsp.typemod.variable.globalScope"] (global variables)