Run nixfmt-rfc-style on repository and add it to Zed config

This commit is contained in:
Jo 2025-05-26 18:06:37 +02:00
parent f5e5adb2fd
commit 45494079c5
41 changed files with 441 additions and 240 deletions

View file

@ -4,12 +4,14 @@
self,
config,
...
}: let
}:
let
inherit (lib) mkEnableOption mkIf mkForce;
inherit (self) namespace;
cfg = config.${namespace}.apps.zed;
in {
in
{
options.${namespace}.apps.zed = {
enable = mkEnableOption "zed, the graphical editor from the future";
};
@ -67,11 +69,14 @@ in {
### Language specific configurations
languages = {
Nix = {
language_servers = ["nixd" "!nil"];
language_servers = [
"nixd"
"!nil"
];
formatter = {
external = {
command = "alejandra";
arguments = ["--quiet"];
command = "nixfmt";
arguments = [ "--quiet" ];
};
};
};
@ -123,6 +128,7 @@ in {
### Nix
nixd
alejandra
nixfmt-rfc-style
### Python
python3Packages.python-lsp-server