If you are using Nextcloud and have apps like Bookmarks, Contacts, News, Notes, Tasks etc installed. You are in luck as you can install most of these apps from F-Droid on your Android phone.
To successfully flash Lineage OS to Mi 5s, there are few things to take care of. But before that please read the note below.