I took a quick look, it's not
that simple.
Without testing maybe this set of changes will suffice.
- Replace instances of "target" with "focus" (as already said)
- Replace instances of "PLAYER_TARGET_CHANGED" with "PLAYER_FOCUS_CHANGED"
- Replace instances of LibNameplate:GetTargetNameplate() with LibNameplate:GetNameplateByUnit("focus")
- Add LibNameplate.RegisterCallback(addon, "LibNameplate_NewNameplate", OnTargetChanged)
Overall I think it's best to submit a feature request to Choonster as this probably goes beyond what an addon user could be expected to do.