How does an eviction effect you chances of buying a home

Jackie

Long story short I left an abusive relationship in the middle of our lease. Even though I vacated the property, i was informed of the eviction notice from the landlord. Is there anything I can do to save my credit ?