boyfriend broke up with me

Aliyah
My boyfriend has major trust issues not stemmed from myself but past relationships. He's been single for four years before me and thinks I'm out to cheat on him. I do everything I possibly can. I cook every night plan ALL of our date /outings try to keep things fun. I give him passwords without him having to ask. I've changed my phone number without him asking just so past men wouldn't randomly contact me.  Lastnight I was texting and old male coworker catching up, I am new the my city still and was asking about a nice view and he suggested some. My boyfriend got jealous called me every name in the book and slammed me into the mirror. I know what you'll say, leave him. But he broke up with me and even though I know it's for the best I feel like shit. I could really use some words of encouragement.