Skip to content

lizclipse/dprint-plugin-stylua

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dprint-plugin-stylua

Format Lua code through dprint using 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 04294967295
useTabs bool global config or false true, false
indentWidth u8 global config or 2 0255
newLineKind NewLineKind global config or lf auto, lf, crlf, system
verify bool false true, false
quoteStyle QuoteStyle AutoPreferDouble AutoPreferDouble, AutoPreferSingle, ForceDouble, ForceSingle
callParenetheses CallParenType Always Always, NoSingleString, NoSingleTable, Input, None
collapseSimpleStatement CollapseSimpleStatement Never Never, FunctionOnly, ConditionalOnly, Always
sortRequires bool false true, false

Also have a look at the StyLua configuration.

About

Format Lua code through dprint using StyLua

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%