vim

Chase 2023-10-08T00:15:15.014549Z

I've been wanting to use paredit (instead of parinfer) more but from what I have found so far, nothing has "strict" mode where unbalanced parens aren't allowed. Am I mistaken in that? If not, are you paredit experts not finding issues with that in real world use?

Nundrum 2023-10-08T03:22:43.133239Z

The only case where paredit let me have unbalanced pairs is when they're present in a comment line and I uncomment it.

2023-10-09T13:53:05.274719Z

I have been using kovisoft/paredit and haven't found issues with it. There is an occasional issue where it auto balances with an existing, which usually happens in comment blocks, and likely because I have screwed up other parents.

2023-10-09T13:53:45.779509Z

My biggest problem is wanting it in other languages that that have parens, curly braces and square brackets... 😄

jamesleonis 2023-10-09T16:18:25.511019Z

+1 for kovisoft/paredit. I have a cross-compatible n/`vim` config. When I get a balance issue I usually use r to fix it.

Chase 2023-10-08T11:43:24.701669Z

Oh nice. So you use ‘paredit.vim’? For some reason I was overlooking that old school one and was trying things like nvim-paredit and my usual vim-sexp.

Nundrum 2023-10-08T14:33:10.461419Z

Yes, indeed, that's the one I'm using. Paredit only adds in matches, it doesn't enforce them. I remember trying vim-sexp but don't remember why I stopped using it.

dharrigan 2023-10-08T14:56:10.529149Z

I've gone back to using parinfer-rust as I was getting too many incorrect imbalances with nvim-parinfer strangely enough

💯 1
Chase 2023-10-08T16:13:35.598029Z

I’ve been a happy parinfer-rust user for years but I feel like it messes up my undo capabilities too often. Maybe I’m misdiagnosing the cause of that though.

Chase 2023-10-08T16:14:40.894899Z

And I’m still scared it will reformat a file on save and not let me undo it when I’m in a shared repo/file where such things are unwanted

dharrigan 2023-10-08T16:29:45.635089Z

On the very rare occasion where it does mess up, I just drop to vi and fix manually

dharrigan 2023-10-08T16:30:04.413139Z

I think it's happened maybe twice this year, in total.