programs.stylua.enable
Whether to enable stylua, a formatter for lua.
Type: boolean
Default:
false
Example:
true
Declared by:
programs.stylua.package
The stylua package to use.
Type: package
Default:
pkgs.stylua
Declared by:
programs.stylua.settings
Configuration options that are written to XDG_CONFIG_HOME/stylua/stylua.toml
See https://github.com/JohnnyMorganz/StyLua#options for more options.
Type: TOML value
Default:
{ }
Example:
{
call_parentheses = "Always";
collapse_simple_statement = "Always";
column_width = 85;
indent_type = "Spaces";
indent_width = 2;
line_endings = "Unix";
quote_style = "AutoPreferSingle";
}
Declared by: