vim-parinfer
vim-parinfer copied to clipboard
Update parens on commenting?
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, 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?
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).