Support for rust-analyzer.inlayHints.typeHints and rust-analyzer.inlayHints.parameterHints
See original GitHub issueHello,
With the added support for decorators on NeoVim is it possible to add support for inlay typeHints? Like the screenshot below, where we have chainingHints (already implemented) and then in the last line we have the typeHints (for vars a
and b
)
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:10
- Comments:24 (11 by maintainers)
Top Results From Across the Web
Inlay hints using coc.nvim (neovim) and rust-analyzer?
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)...
Read more >How to get type hints to display? - visual studio code
Settings (JSON) "rust-analyzer.inlayHints.parameterHints": true. You should then end up with something akin to the following:
Read more >User Manual - rust-analyzer
At its core, rust-analyzer is a library for semantic analysis of Rust code as it changes over time. This manual focuses on a...
Read more >coc-rust-analyzer - npm
Start using coc-rust-analyzer in your project by running `npm i ... closingBraceHints.enable, Whether to show inlay hints after a closing } to indicate...
Read more >Neovim 0.5 Rust Type Inlay Hints Config Help - Reddit
Hi, Up until recently I had type inlay hints working fine in Neovim 0.5 with build in LSP, Rust Analyzer and lsp-extensions etc....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So, I have added a little logic to @the10thWiz change just to show the name of the symbol together with its type so it is easier to see and make sense of it.
With this, it gets it pretty close to the ideal solution.
rust-analyzer.inlayHints.typeHints
is supported in v0.18.0.