plugins.lsp.servers.rust-analyzer.settings.inlayHints.expressionAdjustmentHints.enable

Whether to show inlay hints for type adjustments.

Values:

  • always: Always show all adjustment hints.
  • never: Never show adjustment hints.
  • reborrow: Only show auto borrow and dereference adjustment hints.
"never"

Type: null or one of “always”, “never”, “reborrow”

Default: null

Declared by:

plugins.lsp.servers.rust-analyzer.settings.inlayHints.expressionAdjustmentHints.hideOutsideUnsafe

Whether to hide inlay hints for type adjustments outside of unsafe blocks.

default:

false

Type: null or boolean

Default: null

Declared by:

plugins.lsp.servers.rust-analyzer.settings.inlayHints.expressionAdjustmentHints.mode

Whether to show inlay hints as postfix ops (.* instead of *, etc).

Values:

  • prefix: Always show adjustment hints as prefix (*expr).
  • postfix: Always show adjustment hints as postfix (expr.*).
  • prefer_prefix: Show prefix or postfix depending on which uses less parenthesis, preferring prefix.
  • prefer_postfix: Show prefix or postfix depending on which uses less parenthesis, preferring postfix.
"prefix"

Type: null or one of “prefix”, “postfix”, “prefer_prefix”, “prefer_postfix”

Default: null

Declared by: