tangled
alpha
login
or
join now
thevoid.cafe
/
puzzlevision
0
fork
atom
Non stop entertainment! The wackiest NixOS configuration to-date.
thevoid.cafe/projects/puzzlevision
nixos
flake
flake-parts
dotfiles
home-manager
nix
0
fork
atom
overview
issues
pulls
pipelines
✨ Update Zed config to include Oxfmt and Oxlint
thevoid.cafe
1 month ago
055aa296
21830f2f
+16
-2
2 changed files
expand all
collapse all
unified
split
homes
x86_64-linux
jo
apps
zed
default.nix
modules
home
apps
zed
default.nix
+1
homes/x86_64-linux/jo/apps/zed/default.nix
···
5
5
enable-nix = true;
6
6
enable-php = true;
7
7
enable-python = true;
8
8
+
enable-typescript = true;
8
9
};
9
10
}
+15
-2
modules/home/apps/zed/default.nix
···
17
17
enable-nix = mkEnableOption "support for the Nix language, based on nixd, in Zed.";
18
18
enable-php = mkEnableOption "support for the PHP language, based on phpactor and pretty-php, in Zed.";
19
19
enable-python = mkEnableOption "support for the Python language, based on pylsp, in Zed.";
20
20
+
enable-typescript = mkEnableOption "support for the TypeScript language, based on bun and oxc, in Zed.";
20
21
};
21
22
22
23
config = mkIf cfg.enable {
···
92
93
};
93
94
};
94
95
};
96
96
+
TypeScript = mkIf cfg.enable-typescript {
97
97
+
language_servers = [
98
98
+
"vtsls"
99
99
+
"oxlint"
100
100
+
"oxfmt"
101
101
+
"!eslint"
102
102
+
];
103
103
+
formatter = "language_server";
104
104
+
};
95
105
};
96
106
97
107
### Base editor configurations
···
137
147
138
148
extraPackages =
139
149
with pkgs;
140
140
-
[ oxlint ]
150
150
+
[
151
151
+
oxlint
152
152
+
oxfmt
153
153
+
]
141
154
++ lib.optionals cfg.enable-nix [
142
155
nixd
143
143
-
nixfmt-rfc-style
156
156
+
nixfmt
144
157
]
145
158
++ lib.optionals cfg.enable-python [
146
159
python3Packages.python-lsp-server