Download Latest Version stylua-linux-x86_64-musl.zip (3.4 MB)
Email in envelope

Get an email when there's a new version of StyLua

Home / v2.2.0
Name Modified Size InfoDownloads / Week
Parent folder
stylua-windows-x86_64.zip 2025-09-14 2.7 MB
stylua-macos-x86_64.zip 2025-09-14 3.0 MB
stylua-macos-aarch64.zip 2025-09-14 2.9 MB
stylua-linux-aarch64.zip 2025-09-14 3.1 MB
stylua-linux-aarch64-musl.zip 2025-09-14 3.1 MB
stylua-linux-x86_64-musl.zip 2025-09-14 3.3 MB
stylua-linux-x86_64.zip 2025-09-14 3.2 MB
README.md 2025-09-14 2.7 kB
v2.2.0 source code.tar.gz 2025-09-14 446.2 kB
v2.2.0 source code.zip 2025-09-14 728.9 kB
Totals: 10 Items   22.7 MB 0

[2.2.0] - 2025-09-14

Added

  • Added option block_newline_gaps to determine whether newline gaps at the start / end of blocks should be preserved. Defaults to Never, which is the original behaviour. (#857)
  • StyLua can now run in a language server mode. Start StyLua with stylua --lsp and connect with a language client. (#936)

Changed

  • Luau: Improved union of tables formatting to hang the union type rather than attempt to hug all the tables together (#958)

Fixed

  • Fixed formatting of index containing brackets string in parentheses (#992)
  • Fixed goto not being recognised for LuaJIT (#986)
  • Fixed semicolon removed after a statement ending with an if-expression leading to ambiguous syntax when the next line begins with parentheses (#1010)
  • Luau: Fixed malformed formatting when there is a comment after a type specifier in a local assignment (#995)
  • Luau: Fixed long type union formatted onto a single line if there is a comment in between the equals sign and the type union in a type declaration (#1007)
  • Fixed StyLua installation via pip / uv for Windows (#1018)

External Contributions

New Contributors

Full Changelog: https://github.com/JohnnyMorganz/StyLua/compare/v2.1.0...v2.2.0

Source: README.md, updated 2025-09-14