Finely chop the onions and mushrooms.
Heat olive oil in a pan and sauté the onions.
Add the mushrooms and sauté together.
Add the rice and sauté for about 1 more minute.
Slowly add vegetable stock while stirring, until the rice is cooked.
Season with salt and pepper.