In addition to just before writing a buffer, we load the formatter plugin when entering insertion mode.