mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 12:50:05 +00:00
✨ (modules/home) Update Zed Nix formatter config
This commit is contained in:
parent
431b490e35
commit
d32bad92f0
2 changed files with 13 additions and 14 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -76,11 +76,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747875884,
|
"lastModified": 1747955385,
|
||||||
"narHash": "sha256-tdVx4kghhdy62LKuTnwE2RytOe8o88tah/yhpyuL0D4=",
|
"narHash": "sha256-AKoBFaEGN02tGvBlkwVIDOGXouHvrTTfOUcvBDGxkxQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "f9186c64fcc6ee5f0114547acf9e814c806a640b",
|
"rev": "a868570581f0dbdef7e33c8c9bb34b735dfcbacf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -40,6 +40,16 @@ in {
|
||||||
copilot = false;
|
copilot = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
formatter = {
|
||||||
|
external = {
|
||||||
|
command = "alejandra";
|
||||||
|
arguments = ["--quiet"];
|
||||||
|
language = ["nix"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
format_on_save = "on";
|
||||||
|
|
||||||
### Language specific configurations
|
### Language specific configurations
|
||||||
languages = {
|
languages = {
|
||||||
### Nix language
|
### Nix language
|
||||||
|
@ -47,17 +57,6 @@ in {
|
||||||
language_servers = ["nixd" "!nil"];
|
language_servers = ["nixd" "!nil"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
### LSP configurations
|
|
||||||
lsp = {
|
|
||||||
nixd = {
|
|
||||||
initialization_options = {
|
|
||||||
formatting = {
|
|
||||||
command = ["alejandra" "--quiet" "--"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPackages = with pkgs; [nixd];
|
extraPackages = with pkgs; [nixd];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue