prone to yeast infections?

I’m always getting yeast infections like always and i don’t understand how. like i’ve been using the same detergent for years, i barely go swimming now because i’m prone to it. is it possible it is my eating habits? like honestly i’m tired of it and i am making a drs appointment as i’m writing this but i just wanna know if anybody else gets yeast infections all the time?