25 lines
463 B
Nix
25 lines
463 B
Nix
|
{ pkgs, ... }:
|
||
|
{
|
||
|
plugins = {
|
||
|
lsp.servers.rust-analyzer = {
|
||
|
enable = true;
|
||
|
# Flip these in case rust is installed systemvise
|
||
|
installRustc = false;
|
||
|
installCargo = false;
|
||
|
settings.completion.callable.snippets = "add_parentheses";
|
||
|
};
|
||
|
|
||
|
lint = {
|
||
|
lintersByFt = {
|
||
|
rust = [ "cargo" ];
|
||
|
};
|
||
|
|
||
|
linters = {
|
||
|
cargo = {
|
||
|
cmd = "${pkgs.rustfmt}/bin/cargo-fmt";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|