To understand if "with" is part of an idiom, you need to provide the complete phrase or sentence.
For example, "with a bang" is an idiom, meaning "in a dramatic or exciting way."
Can you please give me the full phrase or sentence you are asking about?