The priority is used to determine the
highlight group used when multiple signs are placed on the
same line.
I assume it is not just used for the highlight group, but for the sign being displayed altogether?
At least that's how I would expect it, and a quick test shows that this is the case, using:
sign define mysign1 text=s1 texthl=Error sign define mysign2 text=s2 texthl=Todo exe 'sign unplace * buffer='.bufnr('%') sign place 1 line=1 name=mysign1 priority=10 sign place 2 line=1 name=mysign2 priority=20 sign place 3 line=1 name=mysign1 priority=10 echo map(sign_getplaced(bufnr('%'))[0].signs, 'v:val.name')
It displays ['mysign2', 'mysign1', 'mysign1'], and the sign text is "s2" (with its highlight).
It should also be clarified with sign_getplaced() which currently only says:
The returned signs in a buffer are ordered by their line
number.
From my observation it returns signs as being displayed (first entry is the visible one).
Something to consider here is also signs with the same ID - from my observation the last placed one is visible, regardless of priority (i.e. if placing id=1 with priority=50, and then with priority=10, it will display the 2nd one).
sign-priority appears to be clear(er) about it already.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
Thanks, closing.
—
You are receiving this because you commented.