As both Rich and Dane have mentioned above, hydration or dehydration is a risk factor for causing kidney stones. A high salt intake from your diet can also contribute to causing kidney stones. Oxalates from the foods you mentioned and also too much vitamin C (from supplemental form) can also contribute to your type of kidney stone. A lower oxalate and higher calcium (from food) diet, along with lower salt intake if high and increasing hydration (aiming for 2l of volume passed per day via urine) is recommended to further prevent kidney stones forming. You still need to keep fruit and veg intake up just choose them wisely as not to be high in oxalates. Potentially reducing your intake or red meat/meats may also benefit. But this all depends on your own starting point and how much you are already eating. Hope this is helpful.
If you are concerned then I would advize you to book an appointment with a local dietitian who can take a full analysis of your diet and bloods and any medication and then provide the best dietary approach for you for prevention.
Rebecca – Uphill Athlete Dietitian.