Thin wrapper around stylua on PATH:
Workaround for missing global StyLua defaults in the VS Code extension JohnnyMorganz/StyLua#978
edit stylua.default.toml once next to this binary — every project without its own config gets that template as stylua.toml.
- If CWD has no
stylua.toml/.stylua.toml→ copystylua.default.toml(next to this binary) →./stylua.toml - Forward all args to
stylua, return its exit code
Never overwrites an existing config. Needs real StyLua installed.
Grab a zip from Releases: windows-x64 / linux-x64 / macos-arm64 / macos-x64.
Keep binary + stylua.default.toml together, point the editor at the wrapper:
{ "stylua.styluaPath": "/path/to/stylua_wrapper" }From source: cargo build --release → target/release/stylua_wrapper[.exe] (+ copy the toml next to it).
| Log | STYLUA_WRAPPER_LOG=1 or create stylua_wrapper.log beside the binary |
| Release | git tag v0.1.0 && git push origin v0.1.0 |
| FAQ | faq.md |