Are Inlay hints supported through rust-analyzer? #6635
-
Question as in title. In VSCode I get the nice type hints for function parameters and variables. Is this possible in Zed? |
Beta Was this translation helpful? Give feedback.
Answered by
JosephTLyons
Nov 3, 2023
Replies: 0 comments 1 reply
-
At the time of this comment, inlay hints were not supported, but they have been for awhile now! You can add the following to your "lsp": {
"rust-analyzer": {
"initialization_options": {
"inlayHints": {
"maxLength": null,
"lifetimeElisionHints": {
"useParameterNames": true,
"enable": "skip_trivial"
},
"closureReturnTypeHints": {
"enable": "always"
}
}
}
}
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JosephTLyons
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the time of this comment, inlay hints were not supported, but they have been for awhile now! You can add the following to your
settings.json
file to get inlay hints fromrust-analyzer
.