plugins.rustaceanvim.settings.server.default_settings.rust-analyzer.imports.preferNoStd

Prefer to unconditionally use imports of the core and alloc crate, over the std crate.

Type: null or boolean

Default: null

Plugin default: false

plugins.rustaceanvim.settings.server.default_settings.rust-analyzer.imports.preferPrelude

Whether to prefer import paths containing a prelude module.

Type: null or boolean

Default: null

Plugin default: false

plugins.rustaceanvim.settings.server.default_settings.rust-analyzer.imports.prefix

The path structure for newly inserted paths to use.

Values:

  • plain: Insert import paths relative to the current module, using up to one super prefix if the parent module contains the requested item.
  • self: Insert import paths relative to the current module, using up to one super prefix if the parent module contains the requested item. Prefixes self in front of the path if it starts with a module.
  • crate: Force import paths to be absolute by always starting them with crate or the extern crate name they come from.

Type: null or one of “plain”, “self”, “crate”

Default: null

Plugin default: "plain"

plugins.rustaceanvim.settings.server.default_settings.rust-analyzer.imports.prefixExternPrelude

Whether to prefix external (including std, core) crate imports with ::. e.g. “use ::std::io::Read;”.

Type: null or boolean

Default: null

Plugin default: false