plugins.rust-tools.server.completion.autoimport.enable

Toggles the additional completions that automatically add imports when completed. Note that your client must specify the additionalTextEdits LSP client capability to truly have this feature enabled.

Type: null or boolean

Default: null

Plugin default: true

Declared by:

plugins.rust-tools.server.completion.autoimport.exclude

A list of full paths to items to exclude from auto-importing completions.

Traits in this list won’t have their methods suggested in completions unless the trait is in scope.

You can either specify a string path which defaults to type “always” or use the more verbose form { "path": "path::to::item", type: "always" }.

For traits the type “methods” can be used to only exclude the methods but not the trait itself.

This setting also inherits #rust-analyzer.completion.excludeTraits#.

Type: null or (list of (string or (submodule)))

Default: null

Plugin default:

[
  {
    path = "core::borrow::Borrow";
    type = "methods";
  }
  {
    path = "core::borrow::BorrowMut";
    type = "methods";
  }
]

Declared by: