I will get insomnia with diet changes. Because I like to travel there are times when my dietary habits change pretty drastically.
Before going on a Gluten-Free diet I had read that eating a whole grain snack, and something high in calcium helps with sleep.
With my last dietary change, traveling to Texas, I used rice crackers and Tums with good success...