I have a custom Jekyll plugin — specifically, a generator — that I need to run after another plugin, jekyll-titles-from-headings. However, the other plugin has a generator that specifies that it is of :lowest (i.e. latest running) priority.
The temporary solution I have thrown together also specifies :lowest priority and just so happens to run after jekyll-titles-from-headings, but for reasons that I cannot discern. What I want is to have a declaration in my own generator class that guarantees my plugin after this other generator.
In my own generator class, I have tried overriding the comparison operators that appear to control plugin ordering to (in a hacky manner) hardcode a comparison result of -1 for my class. That had no effect. I tried specifying a custom @priority value of -200 (since it appears that :lowest = -100). That didn't compile.
How can I guarantee that my generator always runs after this one other generator plugin? If there were some way to specify it as a post-requisite to the other generator, that would be ideal.