The screenshot above is from rust-analyzer in VS Code. I'm wondering if there's a way to get those hints (parts rendered in gray) in coc-nvim (neovim HEAD) and rust-analyzer? I searched in rust-analyzer and coc.nvim wiki's bug no luck. Currently my settings file is:
AFAIK, setting rust-analyzer.inlayHints.chainingHints to true should enable this. I actually had the opposite problem, where I was seeing those hints and wanted to disable them. I achieved that by setting rust-analyzer.inlayHints.chainingHints to false: https://twitter.com/burntsushi5/status/1257841917573947392
Looking at the screenshot, especially at the absence of hints for |(b, v)| I have a hypothesis that maybe coc.rust-analyzer supports only chaining hints? We also have "rust-analyzer.inlayHints.typeHints" and "rust-analyzer.inlayHints.parameterHints" which are renderned inline:
First two here are "chainingHints", the last two are "typeHints"
Sorry for late response -- this site used to send me emails for responses which
is what I relied on, but for some reason it doesn't now, so I missed the
reponses.
I tried everything but couldn't make this work. I'm using latest rust-analyzer
built from source. My settings is as above, and I also tried this simpler
setting:
but no luck.. Anyone know how to debug this? I checked other language-server
functions and they seem to work fine (warnings and errors, renaming, go-to-def
etc.). Screenshot below.
I found the issue -- it's really stupid. For some reason (probably because I saw some zulip threads about this) I thought rust-analyzer and rls are the same thing now, and installed coc-rls instead of coc-rust-analyzer. It's working as expected now. Sorry for the noise!