how to install xposed on cm 12.1?
I've tested this solution on LG G2 running CM12.1. 

Here you will find Xposed Framework for Android 5.1.
First, download and flash "xposed sdk 22", then install Xposed Installer from given link and reboot your device.

For complete details read given XDA thread.