I can configure a source generator by looking for a JSON file and using that, but this method is limited and generally slow to implement.
What I’m looking for is something like fluent syntax on the consuming project, e.g.
generator.UseFormat(c)
As far as I know this doesn’t exist, but I will be happy to be proven otherwise.
One hacky solution I’ve theorised is using another source generator for the fluent configuration to then configure the original source generator. This could work but would be so convoluted there has to be another way.