vim-parinfer icon indicating copy to clipboard operation
vim-parinfer copied to clipboard

Update parens on commenting?

Open metasoarous opened this issue 7 years ago • 2 comments

I use nerd commenter (https://github.com/scrooloose/nerdcommenter) for commenting, and for whatever reason, when I comment out lines the parens do not update. Is there a parinfer centric notion of commenting? Or does anyone know how to hook into the relevant nerdcommenter events in order to trigger a parinfer update?

metasoarous avatar Jan 08 '18 00:01 metasoarous

@metasoarous, I don't know the best way to hook into nerdcommenter but it seems like we could override the hotkey. I'd also enjoy if the commenting were more intelligent.

We're you thinking that commenting at the top of a form would comment the whole form?

bhurlow avatar Jan 08 '18 04:01 bhurlow

My thought was that if I comment a line, it should update the indentation for all the other lines in the form. Then you could comment out a selection in visual model easily enough to comment out the whole form (this is what I do anyway).

metasoarous avatar Jan 08 '18 17:01 metasoarous