Quick answer
Chapter 13 often allows you to keep a home while curing pre-filing mortgage arrears through the plan and making ongoing payments.
General information, not legal advice about your situation. Laws, dollar amounts, and local rules change, so check current requirements with the official sources below or your court.
More detail
The plan must be feasible and satisfy confirmation requirements. You generally must continue required post-filing mortgage payments and plan payments. A Chapter 13 filing does not make an unaffordable mortgage affordable or permanently stop foreclosure if the case fails.
Related official reading
These sources do not endorse Bankruptcy Buddy.