tree-sitter-rust
tree-sitter-rust copied to clipboard
Is it possible to color enum items/members?
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!