feat(tsx): better colors for tsx tags

This commit is contained in:
Folke Lemaitre 2023-05-03 07:52:19 +02:00
parent c5df636ce6
commit f10213d25e
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 6 additions and 1 deletions

View File

@ -54,7 +54,7 @@ function M.docs()
local names = vim.tbl_keys(M.extras)
table.sort(names)
for _, name in ipairs(names) do
info = M.extras[name]
local info = M.extras[name]
table.insert(lines, "- [" .. info.label .. "](" .. info.url .. ") ([" .. name .. "](extras/" .. name .. "))")
end
readme = readme:gsub(pattern, "%1\n" .. table.concat(lines, "\n") .. "\n%2")

View File

@ -257,6 +257,11 @@ function M.setup()
["@namespace"] = { link = "Include" },
-- tsx
["@tag.tsx"] = { fg = c.red },
["@constructor.tsx"] = { fg = c.blue1 },
["@tag.delimiter.tsx"] = { fg = util.darken(c.blue, 0.7) },
-- LSP Semantic Token Groups
["@lsp.type.comment"] = { link = "@comment" },
["@lsp.type.enum"] = { link = "@type" },