No there isn’t but it would be nice to have.
It would also be nice to have a per unit type setting of it the ability should be on auto cast, that applies to repairing and healing too.
Would be nice to do that on Norse Infantry too, especially when you play as Freyr.
You have units that are idle and can’t even collect resources like villagers, and in the case of playing as Freyr it doesn’t even cost anything to repair your buildings.