Skip to content

Commit abbbac0

Browse files
author
Dima Chechetkin
committed
enables vim-signs
1 parent dc5f16d commit abbbac0

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

autoload/lsp/ui/vim/signs.vim

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,24 @@ let s:sign_ids = {}
6868
endfunction
6969

7070
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
8089
endfunction
8190

8291
if !hlexists('LspErrorText')

0 commit comments

Comments
 (0)