rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.23k stars 1.6k forks source link

About ide's with rust #17384

Open YousifYassin opened 4 months ago

YousifYassin commented 4 months ago

First of all, I am just a noob at programming. While I am using Neovim i was thinking, is there a way to change the value's color when the data moves (ownership) to another value, like changing it to red to indicate that I can't use it again or it is completed?

Veykril commented 4 months ago

The closest to this you can get is by making use of semantic highlighting (no idea how to confiugre that in neovim) to change your themes colors for the consuming token modifier. I don't think that catches all move cases, but it does for some of them at least