stylua
« Back to VersTracker
Description:
Opinionated Lua code formatter
Type: Formula  |  Latest Version: 2.3.1@0  |  Tracked Since: Nov 1, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: lua formatter developer-tools code-quality rust
Install: brew install stylua
About:
StyLua is an opinionated code formatter for Lua that enforces a consistent style guide. It parses Lua code into an Abstract Syntax Tree and reprints it according to strict rules, effectively rewriting code to match a standardized format. This eliminates debates over style and ensures codebases remain clean and readable.
Key Features:
  • Opinionated formatting with zero configuration required
  • Supports Lua 5.1, 5.2, 5.3, 5.4, and Luau syntax
  • Fast performance using Rust-based AST manipulation
  • Integration with editors like VS Code and Neovim
Use Cases:
  • Enforcing consistent code style across team projects
  • Automated code formatting in CI/CD pipelines
  • Refactoring legacy Lua codebases to modern standards
Alternatives:
  • lua-fmt – Less maintained; StyLua is more actively developed and supports newer Lua versions
  • EmmyLua formatter – Tied to the EmmyLua plugin; StyLua is a standalone CLI tool
Version History
Detected Version Rev Change Commit
Nov 1, 2025 2:36pm 0 VERSION_BUMP 984ed5f5
Sep 27, 2025 1:03pm 0 VERSION_BUMP d3136e2d
Sep 14, 2025 9:18pm 0 VERSION_BUMP 7c4e847a
Nov 18, 2024 7:30pm 0 VERSION_BUMP 8e4ba9e3
Sep 10, 2024 11:19pm 0 VERSION_BUMP d8a1336c
Nov 12, 2023 3:51pm 0 VERSION_BUMP a5a030f2
Nov 12, 2023 3:12pm 0 VERSION_BUMP a91b2b21
Sep 27, 2023 2:33am 0 VERSION_BUMP dd172b9a
Sep 10, 2023 7:11pm 0 VERSION_BUMP 530acfe3
Sep 10, 2023 5:41pm 0 VERSION_BUMP 44907f5c