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
I tried to change the folding method. The method used currently is:
set foldmethod=expr " Expression based folding set foldexpr=nvim_treesitter#foldexpr()