I dismissed the importance of many aspects of the above for many years before I saw the importance for myself.
In practical terms, what I mean is that unless you're physically healthy you won't be able to operate at anywhere near optimal mental capacity.
This can affect your focus, mood and motivation - for example you can work on your projects but don't manage to complete as much as you like. I was always dismissive because I thought "I don't have depression, I'm fine" and then neglected my health. My killer issue was sleep - I was fit, healthy, confident, successful, but operating on 3-4 hours sleep a night. Only in hindsight can I see how that affected so many years of my life. Correcting that did wonders in weeks.
Specific things to focus on:
- Get enough sleep (7-8 hours+)
- Get consistent sleep (Read up on sleep hygiene, you need consistency)
- Get to the gym and lift weights x3+ weekly (Especially as a male. Develop your body and your mind will follow. Heavy weights, compound lifts)
- Eat a healthy, whole foods based diet (If you're eating like crap, how can you expect to function well)
Maybe you have all this sorted already. But otherwise, take a few steps back and look at your priorities. Investing in yourself is the best thing you can do.