fix(semantic_tokens): dont use @lsp.type.variable. Added builtin variable support
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user