Skip to content

Use 80-column StyLua formatting in Lua examples - #209

Open
tony wants to merge 1 commit into
masterfrom
qa/example-stylua-width
Open

tony wants to merge 1 commit into
masterfrom
qa/example-stylua-width

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Use the example directory's existing 80-column policy when StyLua checks examples. The original formatter accepts a wrappable 88-column Lua statement under both examples/ and tests/unit/. With the example config, StyLua wraps the example and applies the root's 100-column settings to the source fixture.

Test plan

  • Reproduce the 88-column acceptance and verify the same example needs reformatting with the new config.
  • Run the repository format and docs gates on the single-file change.
  • Run the full local outer gate on Linux ARM64 with Lua 5.5.1, tmux 3.8 and Neovim 0.12.5 (75 s), with Keep buffered markers in control parser tests #167 applied for the buffered control-marker fixture.

Closes #207. Refs #19.

why:
The example guide calls for 80 columns, but StyLua applies the root's
100-column setting to Lua examples.

what:
- Give examples their own StyLua settings with an 80-column width.

This branch has not been deployed

No deployments
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.

StyLua accepts wide lines in examples that require 80 columns

1 participant