Enabling a plugin for a specific theme only

To clarify – because you specifically asked about a Plugin – AFAIK it is not possible to selectively (per Theme) enable a Plugin.

However, Theme Components can be selectively enabled per Theme.