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

Make indentation configurable and default to d2 fmt indent #52

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

terlar
Copy link
Contributor

@terlar terlar commented Oct 3, 2024

The d2 fmt will indent with 2 spaces, hence it is a good default.

This is one of my big annoyances with this mode, as I have auto-formatting enabled using d2 fmt. However that indentation is set to 4 and is not configurable. So the mode fights with the auto-indentation.

The `d2 fmt` will indent with 2 spaces, hence it is a good default.
@andorsk
Copy link
Owner

andorsk commented Nov 7, 2024

Thank you. Good call out!

@andorsk andorsk merged commit ec1d6a1 into andorsk:main Nov 7, 2024
5 of 12 checks passed
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