Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rubixdev/dprint-plugin-stylua
Format Lua code through dprint using StyLua
https://github.com/rubixdev/dprint-plugin-stylua
dprint dprint-plugin formatter lua stylua
Last synced: about 2 months ago
JSON representation
Format Lua code through dprint using StyLua
- Host: GitHub
- URL: https://github.com/rubixdev/dprint-plugin-stylua
- Owner: RubixDev
- License: gpl-3.0
- Created: 2022-09-25T16:51:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-02T15:59:33.000Z (10 months ago)
- Last Synced: 2024-10-31T11:45:10.491Z (2 months ago)
- Topics: dprint, dprint-plugin, formatter, lua, stylua
- Language: Rust
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# dprint-plugin-stylua
Format Lua code through [dprint](https://dprint.dev/) using
[StyLua](https://github.com/JohnnyMorganz/StyLua)## Install
Add the plugin to your config file by running
`dprint config add RubixDev/stylua`.Don't forget to add `lua` to your `includes` pattern.
## Configuration
| Name | Type | Default | Possible values |
| ----------------------- | ----------------------- | ------------------------ | -------------------------------------------------------------------- |
| lineWidth | u32 | global config or `120` | `0` — `4294967295` |
| useTabs | bool | global config or `false` | `true`, `false` |
| indentWidth | u8 | global config or `2` | `0` — `255` |
| newLineKind | NewLineKind | global config or `lf` | `auto`, `lf`, `crlf`, `system` |
| verify | bool | `false` | `true`, `false` |
| quoteStyle | QuoteStyle | `AutoPreferDouble` | `AutoPreferDouble`, `AutoPreferSingle`, `ForceDouble`, `ForceSingle` |
| callParanetheses | CallParenType | `Always` | `Always`, `NoSingleString`, `NoSingleTable`, `None` |
| collapseSimpleStatement | CollapseSimpleStatement | `Never` | `Never`, `FunctionOnly`, `ConditionalOnly`, `Always` |Also have a look at the
[StyLua configuration](https://github.com/JohnnyMorganz/StyLua#options).