mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 04:26:05 +00:00
feat(format): add rustfmt formatter for Rust files (#6482)
This commit is contained in:
parent
c8b3b31d27
commit
76c25ef286
2 changed files with 10 additions and 0 deletions
|
|
@ -331,3 +331,12 @@ export const nixfmt: Info = {
|
|||
return Bun.which("nixfmt") !== null
|
||||
},
|
||||
}
|
||||
|
||||
export const rustfmt: Info = {
|
||||
name: "rustfmt",
|
||||
command: ["rustfmt", "$FILE"],
|
||||
extensions: [".rs"],
|
||||
async enabled() {
|
||||
return Bun.which("rustfmt") !== null
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue