Just see this commnet. It fixes my issue too: https://github.com/kevinhwang91/nvim-ufo/issues/92#issuecomment-2241150524