In fact, our past is birth and our future is death. Something happened to us in the middle. I think it's better to stay away from someone who is ignoring you. But if you are angry with him, you will hurt yourself. Forgive him and enjoy your time as you think gladly. Sometimes you have to walk alone in the way of life. And those who can't create this habit of walking alone suffer more. Because they depend on each other and save themselves in society like a parasite. However, in many cases, he may have got a better option so it is possible to avoid you. Or is he really busy with some issues that he doesn't want to involve you in? In these cases, of course, you should look for the right cause.
But it is true that when he comes to you, accept him with a smile or help him as much as you can, he will change.
Believe in the existence of God the superpower.