Cant specialize "diagnostic.unnecessary" for variables / functions / members #11654
-
I am configuring my own theme and i cant figure out how to make a "diagnostic.unnecessary" setting for different types of things such as variables and functions. everything has the same color but i know that themes such as "dark_plus" and "zed_onedark" have specific "unnecessary" configurations, so that functions and variable are darker than their original. Thanks for help in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There isn't a way to style unnecessary and deprecated diagnostics based on whether the diagnostic is on a function or variable: those diagnostics come from the language server while highlighting is done with tree-sitter. Those themes are using the Lines 86 to 87 in 6309cc7 Diagnostic highlights are overlaid onto syntax highlights so the effect is that you have regular variable/function/etc. highlighting with the extra modifiers |
Beta Was this translation helpful? Give feedback.
There isn't a way to style unnecessary and deprecated diagnostics based on whether the diagnostic is on a function or variable: those diagnostics come from the language server while highlighting is done with tree-sitter. Those themes are using the
dim
modifier fordiagnostic.unnecessary
andcrossed_out
fordiagnostic.deprecated
. The default theme uses those modifiers too:helix/theme.toml
Lines 86 to 87 in 6309cc7
Diagnostic highlights are overlaid onto syntax highlights so the effect is that you have regular variable/function/etc. highlighting with the extra…