Would love advice...

I'm 22, currently 6 months pregnant. And I've been with my sons father up to this point. He's been abusive the WHOLE time I've been pregnant. Physically, verbally, emotionally.. And today me and his mother both agreed no one can do this stress anymore. Well we're sorting through things now because we had a place together. And trying to figure that all out. And now he's texting me saying he doesn't want to see or know 'the kid' and my heart is just breaking... Has anyone been through something similar? And how did you get through it? Oh, also he is 5 years younger than me and has anxiety/depression, and bad bad bad anger problems, all while he won't take the medicine the doctors give him.