I know not getting enough potassium can sometimes lead to muscle cramps. Maybe try adding a multi-vitamin to your routine, if you don't already take one. Diuretics can cause the loss of potassium and leg cramps.
Copied from another website, foods high in potassium:
Potassium is found in abundance in many foods, and is especially easy to obtain in fruits and vegetables. Excellent sources of potassium include chard, crimini mushrooms, and spinach.
Very good sources of potassium include fennel, kale, mustard greens, Brussel sprouts, broccoli, winter squash, blackstrap molasses, eggplant, cantaloupe, and tomatoes.
Good sources of potassium include parsley, cucumber, bell pepper, turmeric, apricots, ginger root, strawberries, avocado, banana, tuna, halibut, cauliflower and cabbage.
And from the Mayo Clinic on night leg cramps (possible causes, although they did say most of the time there's no known cause):
Structural disorders :
Flatfeet
Peripheral artery disease (PAD)
Spinal stenosis
Metabolic problems
Addison's disease
Alcoholism
Cirrhosis
Hypothyroidism (underactive thyroid)
Chronic kidney failure
Type 1 diabetes
Type 2 diabetes
Medications :
Blood pressure drugs
Diuretics
Oral contraceptives
Other conditions:
Dehydration
Diarrhea
Muscle fatigue
Parkinson's disease
Pregnancy
So that's basic information about leg cramps :) I would however recommend talking to your doctor if they continue on an almost daily basis. Just to rule out any serious issues that need to be dealt with.
Good luck :)