zls icon indicating copy to clipboard operation
zls copied to clipboard

Gray out `@as()` calls to make them less distracting

Open elyalon opened this issue 1 year ago • 2 comments

From

image

To

image


@as calls are very distracting with syntax highlighting, and because they don't really do anything, I find myself trying to filter them out in my head anyways.

elyalon avatar Jan 26 '24 13:01 elyalon

this doesnt seem like something zls can control, it may provide highlighting but as far as im aware its provided in terms of mapping regions of code to types e.g. keyword vs function vs comment. the actual color is controlled by your editor/theme

i guess zls could identify calls to @as as comments? that seems a little odd though, i cant imagine something like this would be too hard for someone to do themself with theming

xdBronch avatar Jan 26 '24 18:01 xdBronch

I figured maybe it was possible to mark a region of code as “unimportant” or something. Though I think marking them as comments would be good as well.

elyalon avatar Jan 27 '24 06:01 elyalon