nixfmt icon indicating copy to clipboard operation
nixfmt copied to clipboard

define a variable for the amount of indented spaces

Open toastal opened this issue 8 months ago • 15 comments

Makes it easier to override or, hopefully in the future, make configurable (weird you can configure the line length, but not indentation width).

Personally I find 2-space-indented code very difficult to read. I am maintaining a fork on Codeberg to help myself in my own code bases with this patch (but increased indentation width) but this means anyone that wants to also change the indentation only needs to patch a single line instead of multiple spots. This could be fixed if Nix were to support tabs, but that isn’t the case. It also just seems better practice to define the indentation than 2 integers thru the code.

[^1]

[^1]: Please consider giving up MS GitHub or offering a non-proprietary, non-US-corporate-controlled mirror for this free software project. I wish to delete this Microsoft account in the future, but I need more projects like this to support alternative methods to send patches & contribute.

toastal avatar Jun 26 '24 09:06 toastal