When opening big files, there is a considerable delay when using this:
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
Fix:
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"