To acquire PR under EU law you have to have resided in the UK in accordance with the regulations for 5 years. If you decide to go through with the divorce then, once you have retained your rights of residence, you will need to exercise treaty rights for another 2 years to qualify for PR. Either way,...