setup lsp for rust
This commit is contained in:
parent
a05b6e401c
commit
b8526d77c0
2 changed files with 13 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -34,6 +34,13 @@
|
|||
pyright = {
|
||||
enable = true;
|
||||
};
|
||||
# Rust
|
||||
rust_analyzer = {
|
||||
enable = true;
|
||||
# dependencies
|
||||
installCargo = true;
|
||||
installRustc = true;
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue