zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
42.18k stars 2.21k forks source link

Support text coloring and background coloring for inlay hints #12485

Open meocoder31099 opened 1 month ago

meocoder31099 commented 1 month ago

Check for existing issues

Describe the feature

In VSCode and Helix, I noticed they support separate text coloring and background coloring for inlay hints. I also noticed that hint.background exists in Zed's color scheme, but it doesn't seem to work.

If applicable, add mockups / screenshots to help present your vision of the feature

In VSCode, it looks like this

Screenshot 2024-05-30 at 21 40 52

SomeoneToIgnore commented 1 month ago

Very related to https://github.com/zed-industries/zed/issues/11220 and seems like a duplicate.

meocoder31099 commented 1 month ago

My weekend was fantastic, I found the place to do what I wanted in Zed's source code

Screenshot 2024-06-08 at 15 22 52

khongdudinhdoikhongne commented 1 month ago

This is great when coding with Rust. I like using themes where the hint text color matches the type text color, but sometimes it confuses me when I can't easily distinguish between a hint and a clearly declared type