nacro90/numb.nvim

Unfold code when going into folded line

JoseConseco opened this issue · 3 comments

If I enter line number which is in folded code block - numb wont unfold code for preview, but rather it will got to the fold header.
I wish if I enter line number - we could see the unfolded code with line (but if user cancels the go to line command - the code will remain folded)

This is a good feature/fix candidate. I'm on it 👍 Thanks!

I have made a PR. Can you check that works for you?

While peeking, folding will be disabled temporarily. And if the user confirms, only required folds that are necessary to see new line number, unfolded using zv.

It works great. Thanks for your time!