feat(semantic_tokens): link method and functions with defaultLibrary modifier to @function.builtin (#333)

This commit is contained in:
jdrouhard
2023-03-12 03:17:26 -05:00
committed by GitHub
parent 3ebc29df62
commit e0512063c4

View File

@@ -261,7 +261,8 @@ function M.setup()
["@lsp.type.parameter"] = { link = "@parameter" },
["@lsp.type.property"] = { link = "@property" },
["@lsp.type.variable"] = {}, -- use treesitter styles for regular variables
["@lsp.typemod.function.defaultLibrary"] = { link = "Special" },
["@lsp.typemod.method.defaultLibrary"] = { link = "@function.builtin" },
["@lsp.typemod.function.defaultLibrary"] = { link = "@function.builtin" },
["@lsp.typemod.variable.defaultLibrary"] = { link = "@variable.builtin" },
-- NOTE: maybe add these with distinct highlights?
-- ["@lsp.typemod.variable.globalScope"] (global variables)