Skip to content

Commit f113247

Browse files
committed
Always place Sy's signs if multiple signs per line are supported
The newly added g:signify_priority can be changed to give preference to either Sy's signs (raise the priority) or other plugins (lower the priority).
1 parent f8e26d0 commit f113247

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

autoload/sy/sign.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ endfunction
248248

249249
" s:external_sign_present {{{1
250250
function! s:external_sign_present(sy, line) abort
251+
" If sign priority is supported, so are multiple signs per line.
252+
" Therefore, we can report no external signs present and let
253+
" g:signify_priority control whether Sy's signs are shown.
254+
if !empty(s:sign_priority)
255+
return
256+
endif
251257
if has_key(a:sy.external, a:line)
252258
if has_key(a:sy.internal, a:line)
253259
" Remove Sy signs from lines with other signs.

0 commit comments

Comments
 (0)