I am so sorry about all you are going through.
Let me start with if the meds you are on are giving you nightmares and loss of appetite then you probably need a different medication. The loss of appetite may not be a huge issue because you can deal with that but the nightmares can be a huge issue expecially if it is interupting your sleep regularly. PLEASE talk to your doctor about that ASAP!!!!
Also You may not always need the antidepressants. You could possibly just need them until life stops smacking you around and then you might go back to being able to deal with things without medical help.
In 2007 I had a miscarriage, my dog died, my daughter (6 years old) was having major problems in school, my brother almost died and spent 1 1/4 years having surgeries, physical therapy and other stuff. and then on Christmas day our horse of 27 years died. By January 2008 I was a wreck. I had panic attacks and other issues. I went on meds. I was on them almost a year and after some counseling and dealing with some of the grief and issues I was able to go off the meds and have never been back to them.
You need to get some counseling, see your doctor regularly (the one that prescribed the meds) and be very honest about things that are going on with you. You also need a network of family and / or friends that can help you out and come over or you can go there or call or just talk to that can be loving and supportive. you can and will get through this but right now you need some help. The meds are not a cure all, they won't make you "Oh so happy to be getting a divorce and it is nothing but sunshine and smiles." The meds are there to help you cope with all the happenings reasonable and effectively without feeling miserable all the time. If you ever feel suicidal CALL 911 IMMEDIATLY. Do not wait!!!! Get to the hospital or with someone that can hhelp you right away.
You can do this!!! God Bless!!!