question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for rust-analyzer.inlayHints.typeHints and rust-analyzer.inlayHints.parameterHints

See original GitHub issue

Hello,

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)

type hint

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

6reactions
typooncommented, Dec 11, 2020

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.

Screen Shot 2020-12-11 at 12 48 18 PM

With this, it gets it pretty close to the ideal solution.

5reactions
fannheywardcommented, Nov 30, 2020

rust-analyzer.inlayHints.typeHints is supported in v0.18.0.

截屏2020-11-30 18 16 35
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found