Enable field inside Manage Display from a .yml file
There is a single config entity per entity_type, bundle and view/form mode. If you fully control that, then you can provide those config entities, if you just add a single field to something existing, you need to use the API to add your fields configuration to it.

See core.entity_form_display.node.article.default.yml in standard.profile and various others for examples.