plugins.lsp.servers.rust_analyzer.settings
The settings for this LSP.
Type: attribute set of anything
Default:
{ }
Example:
{
callback = {
__raw = ''
function()
print('nixvim')
end
'';
};
foo_bar = 42;
hostname = "localhost:8080";
}
Declared by:
plugins.lsp.servers.rust_analyzer.settings.checkOnSave
Run the check command for diagnostics on save.
Type: null or boolean
Default:
null
Plugin default: true
Declared by:
plugins.lsp.servers.rust_analyzer.settings.linkedProjects
Disable project auto-discovery in favor of explicitly specified set of projects.
Elements must be paths pointing to Cargo.toml
,
rust-project.json
, .rs
files (which will be treated as standalone files) or JSON
objects in rust-project.json
format.
Type: null or (list of (string or attribute set of anything))
Default:
null
Plugin default: [ ]
Declared by:
plugins.lsp.servers.rust_analyzer.settings.numThreads
How many worker threads in the main loop. The default null
means to pick automatically.
Values:
- physical: Use the number of physical cores
- logical: Use the number of logical cores
Type: null or integer or floating point number between 0 and 255 (both inclusive) or one of “physical”, “logical”
Default:
null
Plugin default: null
Declared by: