plugins.rust-tools.server.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
Declared by:
plugins.rust-tools.server.imports.preferPrelude
Whether to prefer import paths containing a prelude
module.
Type: null or boolean
Default:
null
Plugin default: false
Declared by:
plugins.rust-tools.server.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. Prefixesself
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"
Declared by:
plugins.rust-tools.server.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
Declared by: