I gained some weight too during lyme and I can see, looking back, that it coincided with my thyroid function going down down down. I used to be a stable normal weight, never gaining or losing more than 5 pounds for the first 32 years of my life. I even lost the weight after both pregnancies in a reasonable time.Then, I started to really notice symptoms of hypothyroid and was tested. Was borderline high on TSH (indicating low thyroid) I certainly wasn't metabolizing well at all. Gained 20 pounds that 1 year, even panic-dieted through it and I didn't stop gaining. Then I just had to give a rest. I gave up cause I was just to sick to try any longer.
Now, with treatment, my thyroid is (luckily) more in the normal range again after 5 years of being sluggish.
I agree with treepatrol, it's too much for most of us to get well and undertake dieting, especially if your thyroid has been affected by lyme like I believe mine was. I tried to diet and even exercise when I was the symptomatic, but I just gave up after one year of that madness because nothing was happening (weight loss) Yes, it was demoralizing!! I felt so out of control in all areas.
Now that I'm feeling great, I'm on an mild exercise program, on a reasonable diet and actually losing, although VERY SLOWLY, much slower than before being lymed. But at least it's something. The weight gain is bigger than I've ever had to deal with before so I can't crash diet it away; I'm trying to convince myself to take it very slowly.
Unfortunately, weight gain is a problem for many of us...I've seen lots of threads like your over the last 20 months.
Have you had your thyroid checked? Make sure you check more than TSH, but also the others like T3, T4, free T3 etc. to get a better picture of what's going on. Also you may want to check thyroid for thyroid antibodies to make sure nothing like that is happening (Hashimoto's I think it's called - autoimmune problem)