The Verdict: Need More Info
You hold the right kind of residence and need only time: apply once you have either eight years on permanent residence or ten years in Slovakia in total. Count the years from your residence permits and keep your absences short.
Slovakia counts only permanent residence towards the eight years. Temporary residence does not count, except through a second rule: ten years of continuous residence of any kind, as long as you hold permanent residence when you apply. For most people the path is five years on temporary residence, then EU long-term residence (which needs Slovak at A2 level), then citizenship once ten years are complete.
The ministry looks at whether you actually lived in Slovakia during those years and why you were away, though it sets no fixed limit on days abroad.
The language and knowledge test is an interview in Slovak before a three-person panel when you hand in the application: questions about yourself and about Slovak history, geography and public life, then reading aloud a newspaper article of about 500 words and writing a summary of it in 30 minutes. You are exempt if you are over 65, are or were a Czech citizen, or passed a Slovak school-leaving exam, state language exam or university state exam in Slovak in the last ten years.