See https://github.com/RRethy/nvim-treesitter-textsubjects And query files for documentation. Might be buggy.