Skip to content

feat(opencode): add stylua formatter support for Lua files#14855

Open
adampoit wants to merge 1 commit intoanomalyco:devfrom
adampoit:feature/stylua-formatter
Open

feat(opencode): add stylua formatter support for Lua files#14855
adampoit wants to merge 1 commit intoanomalyco:devfrom
adampoit:feature/stylua-formatter

Conversation

@adampoit
Copy link

@adampoit adampoit commented Feb 24, 2026

Register stylua as a built-in formatter for .lua files when the binary is available, and document it in the formatter support table.

Issue for this PR

Closes #14817

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

  • Adds stylua to built-in formatters with .lua extension support
  • Enables it only when stylua is available on PATH
  • Documents stylua in the formatter docs table

How did you verify your code works?

  • Installed stylua and confirmed .lua files are detected/format-enabled via the built-in formatter list
  • Verified behavior remains unchanged when stylua is not installed

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Register `stylua` as a built-in formatter for `.lua` files when the binary is available, and document it in the formatter support table.
@adampoit adampoit force-pushed the feature/stylua-formatter branch from 7a42ebe to 1637703 Compare March 17, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add Stylua formatter support for Lua files

1 participant