plugins.lsp.servers.rust_analyzer.settings.typing.triggerChars

Specify the characters allowed to invoke special on typing triggers.

  • typing = after let tries to smartly add ; if = is followed by an existing expression
  • typing = between two expressions adds ; when in statement position
  • typing = to turn an assignment into an equality comparison removes ; when in expression position
  • typing . in a chain method call auto-indents
  • typing { or ( in front of an expression inserts a closing } or ) after the expression
  • typing { in a use item adds a closing } in the right place
  • typing > to complete a return type -> will insert a whitespace after it
  • typing < in a path or type position inserts a closing > after the path or type.

Type: null or string

Default: null

Plugin default: "=."

Declared by: