Skip to content

Are Inlay hints supported through rust-analyzer? #6635

Closed Answered by JosephTLyons
AmitPr asked this question in Q&A
Discussion options

You must be logged in to vote

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 from rust-analyzer.

"lsp": {
  "rust-analyzer": {
    "initialization_options": {
      "inlayHints": {
        "maxLength": null,
        "lifetimeElisionHints": {
          "useParameterNames": true,
          "enable": "skip_trivial"
        },
        "closureReturnTypeHints": {
          "enable": "always"
        }
      }
    }
  }
},

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by JosephTLyons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
language server An umbrella label for all language servers
2 participants