mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 16:40:48 +00:00
feat(format): add nixfmt formatter for Nix files (#6380)
This commit is contained in:
parent
7b63c14154
commit
67ebe68160
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue