0

Yanking a simple fold in Nvim then pasting it will paste it in an unfolded format, but the next Nvim command will refold every possible layers.

Why ?

Here is an example with a GIF:

Nvim folding bug

1

I tried to change the folding method. The method used currently is: set foldmethod=expr " Expression based folding set foldexpr=nvim_treesitter#foldexpr()

vimuth
  • 5,064
  • 33
  • 79
  • 116
Rekwass
  • 3
  • 3

0 Answers0