Fork me on GitHub
#vim
<
2023-10-08
>
Chase00:10:15

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?

Nundrum03:10:43

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

Chase11:10:24

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.

Nundrum14:10:10

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.

dharrigan14:10:10

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

💯 1
Chase16:10:35

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.

Chase16:10:40

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

dharrigan16:10:45

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

dharrigan16:10:04

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

Proctor13:10:05

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.

Proctor13:10:45

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

jamesleonis16:10:25

+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.