StyLua

Formatterby Tori @gettoriApache-2.0Bundled
Verified against
stylua 2.5.2Measured Sep 21, 2026
Platforms
macOS, Linux, Windows
Install
Uses the one on your PATH
Needs Tori
26.1009.0 or newer
Schema
Version 1
Id
stylua
Source file
formatters/stylua.toml ↗gettori/packs on GitHub

Add it in Tori

  1. Open Settings with the gear in the title bar.
  2. Go to Formatters.
  3. StyLua is already there: it ships inside Tori. When the catalog has a newer version, Add a formatter lists it with Update.

Adding writes one file and runs nothing. Tori runs the one already on your PATH.

Use it without the catalog

Download the file and drop it in the folder below. Tori loads it the next time it starts.

Download file stylua.toml
~/.config/tori/packs/formatters/

The file

stylua.tomlRead only
1# StyLua, from the login PATH. See FORMATTERS.md.23schema_version = 14id = "stylua"5label = "StyLua"6description = "Format Lua and Luau with StyLua"7license = "Apache-2.0"8contributor = { name = "Tori", github = "gettori" }9extensions = ["lua", "luau"]1011verified_against = "stylua 2.5.2"12verified_on = "2026-09-21"1314[markers]15files = ["stylua.toml", ".stylua.toml"]1617[launch]18kind = "path"19program = "stylua"20args = ["--stdin-filepath", "{file}", "-"]