Legal help please


My baby is due in October, my ex partner is pure nasty and he refuses to provide for his unborn child and he says he will provide everything just for his mums home (he's living with his mummy) I live in a 2 bedroom large house alone. And he expects to get custody of his child even though I've reported him to the police numouerous times over the years for domestic violence/abusive towards me, im going to leave him off the birth certificate as I don't feel safe at all, he is now taking me to court for custody of the baby. What do I do