@doglooksgood: sorry for late reply, I’ll turn on notifications in this channel
you can look at atom-parinfer’s implementation here: https://github.com/oakmac/atom-parinfer/blob/master/src-cljs/atom_parinfer/core.cljs#L309
he uses only the current top level s-exp
@shaunlebron I've already solved this problem, the performance is ok. I think this plugin is pretty usable and I'm working on deloy it to melpa.
I think the vim one does the whole file, with no noticeable performance issues
@doglooksgood: great work!
If I use whole buffer, process text more than 500 lines, then I can feel the delay.
Now I use current top level + previous top level.
the vim plugin (not nvim) only runs parinfer after you leave insert mode
last i checked anyway
I found the aggressive-indent in emacs, actually do the same thing with parinfer paren mode.
The aggressive can also keep indentation when edit code like this
(print| hello
world)
I think this is handy.@shaunlebron May I add a link in parinfer homepage for https://github.com/DogLooksGood/parinfer-mode ?
@doglooksgood: yeah, I’ll take a PR for the readme and the site (I list editor plugins in both places)