Sleeping is the hardest

Kristin
Recovering from surgery on my leg and being 20 weeks pregnant. I think I'm going crazy!! I haven't slept fully since the surgery, a week ago today. SO snores all night. In between waking up for medicine, readjusting my leg props, and the constant cramp in my hips I'm losing my mind. 
Thankful for the LO in my belly actively reminding me I'm not alone on these late nights, she can't seem to sleep either.
Any advice on what I could take for cramping? It almost feels like growing pains or shin splints.