Very often I encounter clients that have mental health issues. These issues often have contributed to the charge for which they are facing.
It is best that those issues whether current or in the past are disclosed to the attorney at the initial client/ attorney interview. As all conversations, this information is covered by the attorney-client privilege. In many jurisdictions a separate mental health court has been established which will help with diagnosis and providing resources that other courts may not be set up to properly handle.
I've had a number of clients successfully complete mental health court and receive treatment that has help them make adjustments. . Here is a link to the overview of mental health court in Jefferson County. Be aware that some of the procedures may have changed since this site was updated.