feat(format): add rustfmt formatter for Rust files (#6482)
This commit is contained in:
parent
c8b3b31d27
commit
76c25ef286
1 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…
Reference in a new issue