It’s about being in your 20s, coping with nihilism, disgust with society and, eh, life, in general.
But Renton was wrong. He accepts this by the end.
But you understand exactly why he was so unhappy in the first place. The casual, indifferent laugh McGregor gives when he damn near gets run over is incredibly powerful. He was never given anything to care about.