File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,24 @@ let s:sign_ids = {}
68
68
endfunction
69
69
70
70
function ! s: sign_unplace (sign_group, location)
71
- let l: file = a: location .buffer
72
- if has_key (s: sign_ids , l: file )
73
- for item in items (s: sign_ids [l: file ])
74
- if a: sign_group == item[1 ]
75
- execute ' sign unplace ' . item[0 ] . ' file=' . l: file
76
- remove (s: sign_ids [l: file ], item[0 ])
77
- endif
78
- endfor
79
- endif
71
+ try
72
+ echom ' Unplacing signs in group: ' . a: sign_group
73
+ let l: file = a: location .buffer
74
+ echom ' file: ' . l: file
75
+ if has_key (s: sign_ids , l: file )
76
+ for item in items (s: sign_ids [l: file ])
77
+ if a: sign_group == item[1 ]
78
+ echom ' Unplacing sign #' . item[0 ]
79
+ execute ' sign unplace ' . item[0 ] . ' file=' . l: file
80
+ remove (s: sign_ids [l: file ], item[0 ])
81
+ endif
82
+ endfor
83
+ else
84
+ echom ' No signs found for the file'
85
+ endif
86
+ catch
87
+ echom v: exception
88
+ endtry
80
89
endfunction
81
90
82
91
if ! hlexists (' LspErrorText' )
You can’t perform that action at this time.
0 commit comments