Hey, not an issue just thought I would leave this here, both in case you'd like to include it as a recipe or just for other people who come looking for this, but this is the snippet I'm using to get formatting for leptos projects to work using leptosfmt:
This replaces rustfmt with leptosfmt, which will still call rustfmt due to that --rustfmt flag so it still formats code outside of leptos projects just fine too.
Hey, not an issue just thought I would leave this here, both in case you'd like to include it as a recipe or just for other people who come looking for this, but this is the snippet I'm using to get formatting for leptos projects to work using leptosfmt:
This replaces
rustfmt
withleptosfmt
, which will still callrustfmt
due to that--rustfmt
flag so it still formats code outside ofleptos
projects just fine too.