Fork me on GitHub
#parinfer
<
2018-08-20
>
shaunlebron21:08:41

the indentation suggestion is from codemirror, not parinfer

shaunlebron21:08:41

parinfer accepts different indentation prefs from the editor (2-space vs first arg aligning)

shaunlebron21:08:40

I can see the desire to have parinfer correct this state

shaunlebron21:08:51

parinfer only knows how to preserve indentation relative to the position of its parent open-paren

shaunlebron21:08:50

I’ve been tracking this request as “indentation stickiness”

shaunlebron21:08:24

I called it “sticky” because of the behavior this would cause in the case: 1.

(foo bar
   baz)
2. delete foo:
(| bar
   baz)
3. type “something”:
(something| bar
            baz)

shaunlebron21:08:45

my point is—the user originally had two space indentation, but will end up with first-arg aligned indentation if parinfer tries to involve itself with indentation preferences not related to structure