If you are trying to break a bad habit that you have struggled with for a long time, know that you can lean upon the Lord. You can talk to Him about what your are feeling and what you need help with. He can give you revelation to help you move in a new direction and strength, patience, peace, and encouragement!
When you are walking out a bad habit, you are like a tree growing in the shade. However, if you determine to work with the Lord to change your life, you begin growing in the direction of the sun (the Lord). Just as the sun gives a tree what it needs to live, the Lord will also supply for all your needs.