Fork me on GitHub
#parinfer
<
2017-06-11
>
spinningarrow03:06:02

@dominicm does it also only consider the parent form (like atom-parinfer) or the whole file?

shaunlebron06:06:10

@spinningarrow it does whole file as of yesterday, but he’s looking into doing only parent form I believe

spinningarrow06:06:05

I was playing with vim parinfer - in vim8 there are some autocommands we can use to call parinfer even in insert mode

spinningarrow06:06:20

TextChangedI I think it was

dominicm07:06:48

@spinningarrow yeah, TextChangedI is what is used.

dominicm07:06:54

@shaunlebron during rewriting, I did a profile. On the whole file (1.3k) parinfer was near-instant. Like, so fast. The slow down was writing to the buffer, which I fixed by turning off code folding (the click to collapse feature in most ides)

dominicm07:06:18

Trying to do top-level form detection is difficult. I looked at atom-parinfer's implementation & read surrounding issues, it's a bit of a hack with edge case concerns. As parinfer on whole file is fast already, I didn't bother.

spinningarrow07:06:15

@dominicm ah nice, do you mean in neovim or vim?

spinningarrow14:06:05

Right. I was talking about trying to do the same for vim-parinfer as well; encouraging to know that that's how neovim-parinfer does it as well!

shaunlebron17:06:25

@dominicm nice! i’ll install it today and give it a try