This feature like in VScode and really helpful when writing Rust
These are called inlay hints most of the time, sometimes splint into
when using rust-analyzer as LSP you can get something similar with:
How to get this feature on vim(not neovim)
Google with “vim inlay hints” gives me this thread which claims that it works with CoC.
how to change the settings to have the inlayhint after the variable