My heart goes out to you. Anyone close to you that you can open up to? If Christian, go to your pastor/priest as they are or know good counselors, they can help you a ton! I'll do this first and then talk to the doc.
Sometimes it's hard to believe, but life is worth it and nothing is worth your life, not even the most amazing and handsome guy out there (and I doubt yours was).
Also read or listen to positive or inspirational texts, programs online, radio or movies... This has strenghten me and helped me a lot, more than psychology sessions or medicine. Today I really believe just like Marianne Williamson said, that our deepest fear is not that we are inadequate, our deepest fear is that we are powerful beyond measure... As you let your own light shine, you unconsciously give others ( including your unborn baby) the permission to do the same. As you are liberated from your fear, your presence automatically liberate others.
I really think you should speak to your doctor. Like the above posters have said it will look so much better that your searching for help. I know how a break up feels when your pregnant but as much as it seems like the end of the world i promise it isnt! With my first pregnancy i left my bd because he was being a jerk & i swear i felt like crap. But it ended up being the best thing for us both. We both grew in that time nd now we're expecting our second. Its not perfect but its a lot better then it was. I have u and ur family in my prayers. And remember to be strong if not for urself then for the little princess u have growing inside of u that i know if she was in your shoes some years from now u would wish that u showed her how to be a strong woman! :)
U should talk to your doc.... he/she can get you help... it sounds like depression which can lead to postpartum depression. They will not take your baby away because many women go through this! You can do it but pleaseeeee don't try to commit suicide again, it's not just your life you will be taking but your innocent child to
Def tell your Dr because showing them you want help will prove to them you truly care for your daughter...and I'm so sorry you are going through this...I'm here if you just need someone to talk to <3