parinfer

dominicm 2018-03-21T14:08:57.000820Z

@eraserhd https://github.com/neovim/neovim/pull/5269 might be useful, not sure. Seems async-focused.

eraserhd 2018-03-21T14:11:10.000746Z

I'm using plain Vim, but you are welcome to make PRs to special-case Neovim stuff. Today's project is adding tests that can be run under both and Travis CI.

shaunlebron 2018-03-21T14:17:21.000267Z

@eraserhd are you passing in changes?

eraserhd 2018-03-21T14:21:24.000313Z

Yes. I have to compute them, and on occasion they are wrong, but they are right enough to make smart mode work nicely. 😄

dominicm 2018-03-21T14:28:00.000272Z

I've been using it today, I'm not writing much code, but it's working. I see abandoned comments a lot though 😛

dominicm 2018-03-21T14:28:10.000239Z

that's somewhat particular to the files I'm working on.

eraserhd 2018-03-21T15:16:47.000107Z

vim+parinfer thoughts today: Nice!: I can i#?(:clj <Esc?, and since the paren fix gets merged with the change, I can repeat it with . for other pieces of code.

eraserhd 2018-03-21T15:18:32.000975Z

Other thought: I want J (join lines) and maybe p (paste) to fix indentation.

eraserhd 2018-03-21T15:20:50.000248Z

e.g.: J on line 1 of

#?(:clj
    (extend-type datomic.db.DbId ToTx
      (->tx [this]
        [this])))
becomes
#?(:clj (extend-type datomic.db.DbId ToTx
          (->tx [this]
            [this])))

eraserhd 2018-03-21T17:56:41.000239Z

So, I've been dogfooding a change pretty hard since yesterday, and I can confirm that random crashes on Mac OS are no longer a thing for parinfer-rust. Just pushed the commit, so update if you haven't already. Also, I think there are people who tried it before the major performance improvement was pushed.