Skip to content
Discussion options

You must be logged in to vote

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 for diagnostic.unnecessary and crossed_out for diagnostic.deprecated. The default theme uses those modifiers too:

helix/theme.toml

Lines 86 to 87 in 6309cc7

"diagnostic.unnecessary" = { modifiers = ["dim"] }
"diagnostic.deprecated" = { modifiers = ["crossed_out"] }

Diagnostic highlights are overlaid onto syntax highlights so the effect is that you have regular variable/function/etc. highlighting with the extra…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SneakyChocolate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants