Skip to content

Commit 5153e09

Browse files
authored
feat: introduce deno formatter again (#479)
* feat: re-enable deno * feat: configure mdformat with new withPlugins clause
1 parent bbe7f02 commit 5153e09

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

flake.nix

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -133,29 +133,26 @@
133133
programs = {
134134
alejandra.enable = true;
135135
deadnix.enable = true;
136-
deno.enable = false;
136+
deno.enable = true;
137137
mdformat.enable = true;
138138
statix.enable = true;
139139
};
140140
settings.formatter = {
141-
# TODO: Re-enable deno whenever works again on x86_64-darwin
142-
# deno.command = lib.mkDefault pkgs.deno; # current deno from unstable don't work on darwin x86
143-
# deno.excludes = [
144-
# "*.md"
145-
# "*.html"
146-
# ];
147-
mdformat.command = lib.mkDefault (with pkgsUnstable.python3Packages;
148-
mdformat.withPlugins [
149-
mdformat-admon
150-
mdformat-beautysh
151-
mdformat-footnote
152-
mdformat-frontmatter
153-
mdformat-gfm
154-
mdformat-mkdocs
155-
mdformat-nix-alejandra
156-
mdformat-simple-breaks
157-
mdformat-toc
158-
]);
141+
deno.excludes = [
142+
"*.md"
143+
"*.html"
144+
];
145+
mdformat.command = lib.mkDefault (pkgsUnstable.mdformat.withPlugins (p: [
146+
p.mdformat-admon
147+
p.mdformat-beautysh
148+
p.mdformat-footnote
149+
p.mdformat-frontmatter
150+
p.mdformat-gfm
151+
p.mdformat-mkdocs
152+
p.mdformat-nix-alejandra
153+
p.mdformat-simple-breaks
154+
p.mdformat-toc
155+
]));
159156
mdformat.excludes = [
160157
# mdformat doesn't behave well with some admonitions features
161158
"apps.md"

0 commit comments

Comments
 (0)