Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

Commit 055aa29

Browse files
committed
✨ Update Zed config to include Oxfmt and Oxlint
1 parent 21830f2 commit 055aa29

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

homes/x86_64-linux/jo/apps/zed/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
enable-nix = true;
66
enable-php = true;
77
enable-python = true;
8+
enable-typescript = true;
89
};
910
}

modules/home/apps/zed/default.nix

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ in
1717
enable-nix = mkEnableOption "support for the Nix language, based on nixd, in Zed.";
1818
enable-php = mkEnableOption "support for the PHP language, based on phpactor and pretty-php, in Zed.";
1919
enable-python = mkEnableOption "support for the Python language, based on pylsp, in Zed.";
20+
enable-typescript = mkEnableOption "support for the TypeScript language, based on bun and oxc, in Zed.";
2021
};
2122

2223
config = mkIf cfg.enable {
@@ -92,6 +93,15 @@ in
9293
};
9394
};
9495
};
96+
TypeScript = mkIf cfg.enable-typescript {
97+
language_servers = [
98+
"vtsls"
99+
"oxlint"
100+
"oxfmt"
101+
"!eslint"
102+
];
103+
formatter = "language_server";
104+
};
95105
};
96106

97107
### Base editor configurations
@@ -137,10 +147,13 @@ in
137147

138148
extraPackages =
139149
with pkgs;
140-
[ oxlint ]
150+
[
151+
oxlint
152+
oxfmt
153+
]
141154
++ lib.optionals cfg.enable-nix [
142155
nixd
143-
nixfmt-rfc-style
156+
nixfmt
144157
]
145158
++ lib.optionals cfg.enable-python [
146159
python3Packages.python-lsp-server

0 commit comments

Comments
 (0)