mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-17 08:01:02 +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 {
|
return {
|
||||||
settings = {
|
settings = {
|
||||||
['rust-analyzer'] = {
|
['rust-analyzer'] = {
|
||||||
checkOnSave = { command = 'clippy' },
|
checkOnSave = true,
|
||||||
|
check = { command = 'clippy' },
|
||||||
cargo = { allFeatures = true },
|
cargo = { allFeatures = true },
|
||||||
procMacro = { enable = true },
|
procMacro = { enable = true },
|
||||||
diagnostics = { enable = true },
|
diagnostics = { enable = true },
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,10 @@
|
||||||
exec ${pkgs.python3}/bin/python3 "$@"
|
exec ${pkgs.python3}/bin/python3 "$@"
|
||||||
'';
|
'';
|
||||||
in {
|
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 = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
|
|
@ -38,7 +42,6 @@ in {
|
||||||
python
|
python
|
||||||
python3
|
python3
|
||||||
ripgrep
|
ripgrep
|
||||||
rust-analyzer
|
|
||||||
stylua
|
stylua
|
||||||
vscode-langservers-extracted
|
vscode-langservers-extracted
|
||||||
nodePackages.bash-language-server
|
nodePackages.bash-language-server
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue