Skip to content

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

Closed
adampoit wants to merge 1 commit into
anomalyco:devfrom
adampoit:feature/stylua-formatter
Closed

adampoit wants to merge 1 commit into
anomalyco:devfrom
adampoit:feature/stylua-formatter

Conversation

@adampoit

@adampoit adampoit commented Feb 24, 2026 •

Copy link
Copy Markdown

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.
@rekram1-node

Copy link
Copy Markdown
Collaborator

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

@adampoit
adampoit deleted the feature/stylua-formatter branch May 17, 2026 21:39
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

2 participants