Overriding query templates

Hello, why does the following space-lua block not overwrite the taskItem template in the standard library?

-- priority: 9
templates.taskItem = template.new([==[
* [${state}] ${name} [[${string.find(ref, "[@#]") and ref or "$" .. ref}]]
]==])

(The above just swaps the ${name} and [[...]] strings from the original taskItem defintion.)

My understanding is that space-lua blocks run in descending priority order, so the above should run after the assignment of templates.taskItem in the standard library? I've overwritten other standard library scripts without issue.

What version are you running? The setting of all standard library priorities was done one edge, it defaults to 0 before. This change hasn’t been released yet. If you’re on a release version try a negative priority to see if that works.

Negative priority worked, thanks!