(modules/home) Update Zed Nix formatter config
Some checks are pending
Nix: check for unused code / Run deadnix (push) Waiting to run
Nix: validate flake / Validate x86_64-linux (push) Waiting to run

This commit is contained in:
Jo 2025-05-23 02:39:37 +02:00
parent 431b490e35
commit d32bad92f0
2 changed files with 13 additions and 14 deletions

View file

@ -40,6 +40,16 @@ in {
copilot = false;
};
formatter = {
external = {
command = "alejandra";
arguments = ["--quiet"];
language = ["nix"];
};
};
format_on_save = "on";
### Language specific configurations
languages = {
### Nix language
@ -47,17 +57,6 @@ in {
language_servers = ["nixd" "!nil"];
};
};
### LSP configurations
lsp = {
nixd = {
initialization_options = {
formatting = {
command = ["alejandra" "--quiet" "--"];
};
};
};
};
};
extraPackages = with pkgs; [nixd];