My last relationship would sometimes significantly reduce my desire to create anything.
The good times were great and of course programming was the last thing on my mind. The bad times were simply draining and I'd lose the drive to make progress on my goals.