If I have a block of css or js that is folded in vim, when ever add a new block above it, the block gets unfolded.

Currently, I just have this in my vimrc

autocmd FileType css,scss setlocal foldmethod=marker autocmd FileType css,scss setlocal foldmarker={,}