I noticed that parinfer automatically provides the right indentation for forms like if and with-open but looking through the source code, I'm not sure where that is specified and how new indentation rules can be added.
There are no form-specific indentation rules in parinfer. I think you were seeing the editor’s own indentation rules, which parinfer respects (but clamps to what it considers valid thresholds).
I noticed that parinfer automatically provides the right indentation for forms like
if
andwith-open
but looking through the source code, I'm not sure where that is specified and how new indentation rules can be added.