Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom indentation length support #431

Closed
wants to merge 2 commits into from

Conversation

3timeslazy
Copy link
Contributor

@3timeslazy 3timeslazy commented Nov 13, 2024

The PR introduces new --indent flag. The flag's value follows the pattern {number}{t | s}, where

  • {t | s} stands for either tabs or spaces
  • {number} - the number of tabs/spaces used for indentation

Examples:

  • To use 4 spaces: alejandra -i 4 file.nix or alejandra -i 4s file.nix
  • To use tabs: alejandra --indent 1t

Addresses: #415

The flag above is my proposal, but I’m open to any alternatives :)

@kamadorueda
Copy link
Owner

Feature implemented in #435

@kamadorueda kamadorueda closed this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants