Allow configurable indent size rather than enforced #4707
alpheusmtx
started this conversation in
Ideas & suggestions
Replies: 2 comments
-
|
Agreed, this is one of the main blockers for me using gleam. It's hard to tell at a glance which block some code is in when there are only 2 spaces. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I made a fork that changes the indent size to 4 spaces rather than 2. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, Gleam enforces a 2-space indentation for all code. However, I think this is hard to read (for me) as I always use 4-space indentation in my projects. I believe that the Gleam formatter would be better by supporting different configuration, rather than enforcing a fixed style. Ideally, this could be set via the
gleam.tomlfile or passed as a flag to the CLI, such as--indentor--indent-size.Beta Was this translation helpful? Give feedback.
All reactions