Increasing the money supply is one of the many things that can cause inflation. But to thing it is the only factor is overly simplistic, sort of Laffer-curve-esque. In that it makes a lot of sense in an economics 101 class but the reality is a lot more complex.
For example, if you double the money supply tomorrow but most of that extra money ends up in the bank accounts of the richest people in the world, it will have little effect on the price of avocados, for example. Rich people aren't buying more avocados because now they have $100m instead of $50m. But you can bet you would start to see inflation for yachts, private air
In other words, money supply only affects inflation in as much as it affects supply and demand.