tree-sitter-rust icon indicating copy to clipboard operation
tree-sitter-rust copied to clipboard

Is it possible to color enum items/members?

Open amaanq opened this issue 3 years ago • 0 comments

As the title suggests, I would like to know if it's possible to use a custom color for enum items. It is very unclear and difficult to me to figure out the tags to use to change the color, but here's what I have so far...

highlights = {
    ["@field.rust"] = { fg = "${red}" },
    ["@function.macro.rust"] = { fg = "${orange}" },
    ["@keyword.rust"] = { fg = "${purple}" },
    ["@label.rust"] = { fg = "${white}" },
    ["@operator.rust"] = { fg = "${white}" },
    ["@parameter.rust"] = { fg = "${red}", style = "italic" },
    ["@punctuation.bracket.rust"] = { fg = "${purple}" },
    ["@variable.builtin.rust"] = { fg = "${purple}", style = "italic" },
}

Thanks!

amaanq avatar Oct 04 '22 21:10 amaanq