How long will it take to get rid of a yeast infection if I keep drinking warm lemon water and eat plain yogurt everyday starting from today?

Unknown. There is no definitive answer that can be given, as depending on the severity of the infection, how your body responds to the overgrowth of yeast causing an infection, and whether you may actually need a medication to assist you getting rid of the infection.