Open palango opened 1 year ago
That depends on your theme, you can reference and style the mut
keyword using keyword.storage.modifier.mut
i have already a pr that would somewhat addresses this. I am not sure how i feel about selecting only mutable variables, as this would be pretty much only applicable to rust.
I am not sure how i feel about selecting only mutable variables, as this would be pretty much only applicable to rust.
The same distinction exists in other languages as well, like var
and val
in Kotlin, so I think it can be generalized.
it is only possible to color
mut
instead ofvariable name
depending onmut
type.
Is this maybe what this TODO by @archseer is referring to? https://github.com/helix-editor/helix/blob/bff7fc8695f1d58b918f94dee7638f8a4a1e4b0e/runtime/queries/rust/highlights.scm#L183
In VSCode mutable vars can be highlighted distinctly from immutable vars:
This would be nice to have in Helix as well.