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
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) local names = vim.tbl_keys(M.extras)
table.sort(names) table.sort(names)
for _, name in ipairs(names) do 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 .. "))") table.insert(lines, "- [" .. info.label .. "](" .. info.url .. ") ([" .. name .. "](extras/" .. name .. "))")
end end
readme = readme:gsub(pattern, "%1\n" .. table.concat(lines, "\n") .. "\n%2") readme = readme:gsub(pattern, "%1\n" .. table.concat(lines, "\n") .. "\n%2")

View File

@@ -257,6 +257,11 @@ function M.setup()
["@namespace"] = { link = "Include" }, ["@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 Semantic Token Groups
["@lsp.type.comment"] = { link = "@comment" }, ["@lsp.type.comment"] = { link = "@comment" },
["@lsp.type.enum"] = { link = "@type" }, ["@lsp.type.enum"] = { link = "@type" },