feat(format): add nixfmt formatter for Nix files (#6380)

This commit is contained in:
ja 2025-12-29 15:57:52 -05:00 committed by GitHub
parent 7b63c14154
commit 67ebe68160
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -322,3 +322,12 @@ export const shfmt: Info = {
return Bun.which("shfmt") !== null
},
}
export const nixfmt: Info = {
name: "nixfmt",
command: ["nixfmt", "$FILE"],
extensions: [".nix"],
async enabled() {
return Bun.which("nixfmt") !== null
},
}