The Verdict: Unlikely
Naturalisation counts only years actually lived in Slovenia with a residence permit, so it starts when you move there. Look first at how you would get a permit: a job, a digital nomad permit, family, or Slovenian origin.
The ordinary route needs ten years actually living in Slovenia, the last five without a break, with a residence permit or EU registration throughout.
Some people need fewer years: recognised refugees and stateless people five, graduates of a Slovenian university or college seven, spouses of Slovenian citizens one year after three years of marriage, descendants of Slovene emigrants one year, and former citizens six months. Our marriage, diaspora and reacquisition quizzes cover those.