People with restless legs syndrome have nearly three times the risk of suicide or self-harm, even if they didn't have underlying conditions like depression, diabetes and insomnia.Of course, as a correlational study, a causal relationship is not established. Suicidal feelings may cause restless leg, or restless leg may cause suicide, or some other factor, as yet undetermined, may cause both.
Some speculate that restless leg causes sleep disturbance which may be causative for suicide. As always, more research is needed.