Replace `config.format_on_save` with something like `config.plugins.formatter.format_on_save`
Replace
config.format_on_savewith something likeconfig.plugins.formatter.format_on_save