Relationship advice

I’ve been with my boyfriend for almost 3 years but we’ve always had problems. He was flirting with another girl over a year ago and that developed some trust issues although i did forgive him. He’s lied about multiple things and sometimes i feel as though i am not treated the way i should. I will admit sometimes i am a bit manipulative but it is only because of the trust issues he gave me. I just feel as though we are not in a healthy relationship and it’s not specifically one person but it is both of us. I just don’t want to let him go because of how much i love him, he means the world to me and my family completely loves him. I don’t know what to do I love him but I also think I should put myself first.