ocaml-ppx / ocamlformat

Auto-formatter for OCaml code
MIT License
619 stars 174 forks source link

Feature request: expose `let_binding_deindent_fun` as configuration flag #2491

Closed henrytill closed 7 months ago

henrytill commented 8 months ago

Would you accept a PR exposing let_binding_deindent_fun as a configuration flag?

I prefer false for this setting, but otherwise I use a conventional-based style. The only built-in style that has this set to false is janestreet, which has a fairly large delta with conventional, and would require a lengthier .ocamlformat file to support my preferred style.

Julow commented 7 months ago

I understand why this formatting can be unwanted and I'd be in favor of the change.

henrytill commented 7 months ago

Thanks @Julow.

I've submitted PR with this change: #2521.