So what will happen if I continue lifting weights in the gym?
Training with a hernia is usually no big deal. I did it for 5-6 years before I decided to get mine fixed. But a hernia CAN rupture if you do particular things wrong, and if this hapens, it will be extremely painful, and you will require immediate surgery.
Is it gonna make it more painful?
Not necessarily painful, but annoying. Very annoying.
Is there specific exercises to avoid or to focus more that could help? Dont want to stop gym :/
There are lots of exercises that can irritate or damage a hernia. I'm not going to list them, because it would be impossible to list them all. Besides, my best advice is you get your hernia repaired sooner rather than later.
it just so happens I've had a hernia repair. I got it done electively. In my case, it was small, and the doctor said "you don't need surgery, so it's up to you", but I elected to have it done anyway, because while it didn't hurt, I was sick of feeling it there when lifting weights.
If you intend to keep training with weights, I highly suggest you get your hernia repaired. It's a very small and non-invasive surgery, with a short recovery time. A couple days of at-home rest, followed by a couple weeks of no training, followed by 4-6 weeks of light training, followed by being as good as new. And at this point, you can train however heavy you want.
The type of repair will be very dependent on the size of your hernia. For most cases, a small mesh is implanted behind the hernia. In other cases, it's so small it can just be sewed shut.