github JohnnyMorganz/StyLua v2.4.0

8 hours ago

[2.4.0] - 2026-03-07

Added

  • Added flag --no-ignore-vcs to continue formatting files listed in a .gitignore file, instead of skipping over them (#895)
  • Support call_parentheses = Input in editorconfig (#1057)
  • Luau: Support formatting explicit type instantiations (f<<T>>(), obj:method<<T>>())
  • Support stylua_syntax and stylua_block_newline_gaps properties in editorconfig (#1054)

Fixed

  • Fixed syntax error in output when a single-line comment appears between an index suffix and a table call argument, e.g. foo.bar -- comment { } (#873)
  • Fixed malformed formatting when a binary expression inside of a function call with comments around the operators is incorrectly collapsed onto one line (#996)
  • Fixed repeated unary minus on long lines being collapsed into a comment, e.g. - - - - -5 becoming -----5 (#1075)
  • Fixed --preserve-block-newline-gaps CLI flag not being applied as a config override
  • Fixed LSP not respecting .stylua.toml on Windows due to incorrect file URI to path conversion (#1051)

External Contributions

New Contributors

Full Changelog: v2.3.1...v2.4.0

Don't miss a new StyLua release

NewReleases is sending notifications on new releases.