in my init.rc I have the following:
autocmd BuffWrite *.* mkview
autocmd BuffRead *.* silent! loadview
In my init.lua I have:
vim.opt.foldmethod = 'marker'
In my working files I use the following blocks to create folds:
// Header {{{1
***This is the foldable area***
// }}}
The problem I have is that everytime I add code to a foldable area and save it, the foldable area folds automatically. This is particularly annoying when I have multiple levels of folds. Because they all fold automatically on save.
How do I prevent this behavior?