My current config
➜ cat ~/.config/nvim/coc-settings.json
{
"suggest.noselect": true,
"rust-analyzer.inlayHints.typeHints.enable": true,
"rust-analyzer.inlayHints.chainingHints.enable": true
}
What I am expecting
let a = 12; // there used to be a :i32 displayed next to a
Looks like you're using the stable nvim, and latest coc.nvim supports inline inlayHint https://github.com/neoclide/coc.nvim/pull/4648, that needs nvim 0.10+.
Yes, this is a breaking change for nvim stable users. Two solutions: