This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
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?
The only case where paredit let me have unbalanced pairs is when they're present in a comment line and I uncomment it.
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.
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.
I've gone back to using parinfer-rust as I was getting too many incorrect imbalances with nvim-parinfer strangely enough
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.
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
On the very rare occasion where it does mess up, I just drop to vi
and fix manually
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.
My biggest problem is wanting it in other languages that that have parens, curly braces and square brackets... 😄
+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.