Diet, sleep, and exercise are needed in combination. The highest performers across many professions tend to sleep the most. Exercise helps make better use of the foods you are eating and produces the hormones you need to think clearly.
As for supplements to help, examine.com has a bounty of information: https://examine.com/topics/Cognition/