feat(tsx): better colors for tsx tags
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
@@ -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" },
|
||||||
|
|||||||
Reference in New Issue
Block a user