What can't you play that you wish you could? - just work on those areas. I don't think there is one correct answer, just whatever works for you. For me, if I'm in a rut, I'll learn some songs I've always liked but never transcribed - you always pick something up from that which becomes part of your box of tricks.
This is gonna be an unpopular one, but I've also found that time away can reignite your passion for guitar. I'm talking maybe a few weeks, not years mind. I think maybe 6 weeks is the longest I've gone in 20+ years.
I've never found that pouring over theory did me any good, I'm a meat and potatoes player - it's all from jamming and playing to records, noodling in the house and gigging since I was 15.
I'm also a firm believer of going back to the roots - learn where the stuff came from, get your blues and country licks down, your classic rock, punk - its all got it's own thing you can take away from it (except Jazz, I'm not having that :lol:)