setup lsp for rust

This commit is contained in:
♥ Minnie ♥ 2025-05-20 18:48:06 +08:00
parent a05b6e401c
commit b8526d77c0
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
2 changed files with 13 additions and 0 deletions

View file

@ -22,6 +22,9 @@
"isort"
"black"
];
rust = [
"rustfmt"
];
};
# Install our formatters
@ -45,6 +48,9 @@
"--enable-unstable-feature" "string_processing"
];
};
rustfmt = {
command = lib.getExe pkgs.rustfmt;
};
};
# Receive notificaton when a formatter errors.

View file

@ -34,6 +34,13 @@
pyright = {
enable = true;
};
# Rust
rust_analyzer = {
enable = true;
# dependencies
installCargo = true;
installRustc = true;
};
};
keymaps = {