A healthy diet with plenty of vitamins and minerals can support your immune system and help you recover from a cough faster. Foods rich in vitamin C, like citrus fruits, and foods with anti-inflammatory properties, like leafy greens and nuts, can be very helpful. Some people also find that avoiding dairy and processed foods can help reduce mucus production.