[subject] + [chengyu]
[chengyu] + 的 + [noun]
[chengyu] + 地 + [verb]
[verb] + 得 + [chengyu]
A chengyu is a fixed four-character idiom, and in a sentence it works as one word. Which slot it fits depends on whether it behaves like an adjective or like a verb.
Most chengyu stand straight after the subject, with no 是.
Chengyu about manner or mood take 地 and describe how something is done.
A chengyu can also be the complement – the part after 得 that says how an action turned out.
A verb-like chengyu is already complete: it doesn't take an object after it. The thing involved moves in front.
An adjective-like chengyu already carries its degree, so 很 doesn't go in front.
Inside a chengyu the grammar is often classical and can't be taken apart; that is a separate topic.