lsp.servers.rust_analyzer
rust-analyzer is a language server that provides IDE functionality for Rust.
Type: submodule
Default:
{ }
Declared by:
lsp.servers.rust_analyzer.enable
Whether to enable rust_analyzer.
Type: boolean
Default:
false
Example:
true
Declared by:
lsp.servers.rust_analyzer.package
The rust_analyzer package to use.
Alternatively, rust_analyzer should be installed on your $PATH.
Type: null or package
Default:
pkgs.rust-analyzer
Declared by:
lsp.servers.rust_analyzer.packageFallback
When enabled, the language server package will be added to the end of the PATH (suffix) instead of the beginning (prefix).
This can be useful if you want local versions of the language server (e.g. from a devshell) to override the Nixvim version.
Type: boolean
Default:
false
Declared by:
lsp.servers.rust_analyzer.activate
Whether to call vim.lsp.enable() for rust_analyzer.
Type: boolean
Default:
true
Example:
false
Declared by:
lsp.servers.rust_analyzer.config
Configurations for rust_analyzer. Server settings belong under settings."rust-analyzer" and are described in the rust-analyzer configuration documentation.
Type: attribute set of anything
Default:
{ }
Example:
{
settings = {
rust-analyzer = {
check = {
command = "clippy";
};
};
};
}
Declared by:
lsp.servers.rust_analyzer.name
The name to use for rust_analyzer.
Supplied to functions like vim.lsp.enable().
Type: string or raw lua code
Default:
"rust_analyzer"
Declared by: