I talked to him about big changes and new features before implementing them to hear his opinion in order to make him feel more involved but in one of those meetings, he said something like: "You wouldn't be able to do this on your own if I didn't help you. Did you learn about this kind of stuff at school?". This was the start of a chain of events which finally led to quitting my job and taking up new one from the beginning of May.
Next time I will make sure that I either won't talk about everything in detail to my coworker or make sure that people understand why I'm involving them in the decision making.