Folic acid can be taken as supplements or through foods, such as peanuts, garbanzo beans, lentils and spinach in its naturally occurring form, folate. Another B vitamin, B12, has also been directly linked to RLS, according to Dr.