mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 21:03:25 +00:00
rust
This commit is contained in:
parent
0a4a467aba
commit
41186b8c17
2 changed files with 6 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
|||
return {
|
||||
settings = {
|
||||
['rust-analyzer'] = {
|
||||
checkOnSave = { command = 'clippy' },
|
||||
checkOnSave = true,
|
||||
check = { command = 'clippy' },
|
||||
cargo = { allFeatures = true },
|
||||
procMacro = { enable = true },
|
||||
diagnostics = { enable = true },
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@
|
|||
exec ${pkgs.python3}/bin/python3 "$@"
|
||||
'';
|
||||
in {
|
||||
# Keep rust-analyzer in the user profile so it shadows rustup's proxy in
|
||||
# /run/current-system/sw/bin when Neovim resolves LSP executables.
|
||||
home.packages = [pkgs.rust-analyzer];
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
|
|
@ -38,7 +42,6 @@ in {
|
|||
python
|
||||
python3
|
||||
ripgrep
|
||||
rust-analyzer
|
||||
stylua
|
||||
vscode-langservers-extracted
|
||||
nodePackages.bash-language-server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue