-
Notifications
You must be signed in to change notification settings - Fork 18
rust-analyzer: Add better support for TypeHint
s and ParameterHint
s
#14
Comments
To my knowledge it is currently not possible to display the hints in other positions than at the end of the line. The hints are added as virtual text which can only be placed after any other text in the line (see the documentation). |
I just read that in the docs too 😅 Well, this may not work how I want it to then 😬 |
I guess we'll have to wait until NeoVim supports virtual text in arbitrary positions... |
This PR seems very related as well neovim/neovim#9496 |
It also seems like coc-rust-analyzer also only supports |
This adds support for setting your own options of the hints you want.
|
That should be fine. I'll close this. |
this workaround looks useful fannheyward/coc-rust-analyzer#394 (comment) |
The current rust inlay-hints implementation puts everything at the end of the line when the intended behavior of
Type
andParameter
hints is to be interspersed in the line. We should be able to draw these hints more closely to this.Where TypeHints go after variable declarations and ParameterHints are paired with their variables.
Related PRs:
#13
#9
The text was updated successfully, but these errors were encountered: