My understanding is that treesitter doesn't do
anything with indentation. I believe the issues described in the linked issues are neovim specific.
So it should be possible in theory to use treesitter data to calculate indents, though it seems difficult.