diff options
-rw-r--r-- | flake/treefmt.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/flake/treefmt.nix b/flake/treefmt.nix index 1cbab409..e2c6aeae 100644 --- a/flake/treefmt.nix +++ b/flake/treefmt.nix @@ -47,7 +47,20 @@ treefmt-nix.lib.evalModule pkgs ( }; }; }; - stylua.enable = true; + stylua = { + enable = true; + settings = { + sort_requires.enabled = true; + column_width = 120; + line_endings = "Unix"; + indent_type = "Spaces"; + indent_width = 2; + quote_style = "ForceDouble"; + call_parentheses = "Always"; + # space_after_function_names = "Never"; + collapse_simple_statement = "Always"; + }; + }; ruff = { enable = true; format = true; |