Quite a coincidence to see this posted, last weekend I installed Lineage OS on my Xperia XA2 and found Magisk was the generally recommended superuser privilege manager. By and large it works fine, although it complains about needing to reflash whenever I start the app, but granting superuser privileges to applications works without issues.