parinfer / parinfer.js

Let's simplify the way we write Lisp
https://shaunlebron.github.io/parinfer
MIT License
1.75k stars 40 forks source link

how to add indentation rules for custom forms? #193

Closed zcaudate closed 1 year ago

zcaudate commented 5 years ago

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.

shaunlebron commented 1 year ago

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).