@@ -31,11 +31,11 @@ let s:sign_ids = {}
31
31
endfunction
32
32
33
33
function ! s: sign_place (sign_id, sign_group, sign_name, path , lines )
34
- echom ' SIGN_PLACE'
34
+ " echom 'SIGN_PLACE'
35
35
" calculating sign id
36
36
let l: sign_id = a: sign_id
37
37
if l: sign_id == 0
38
- echom ' Calculating sign id...'
38
+ " echom 'Calculating sign id...'
39
39
let l: index = 1
40
40
if ! has_key (s: sign_ids , a: path )
41
41
let s: sign_ids [a: path ] = { }
@@ -49,7 +49,7 @@ let s:sign_ids = {}
49
49
let l: index = l: index + 1
50
50
endif
51
51
endwhile
52
- echom ' calculated id: ' . l: sign_id
52
+ " echom 'calculated id: ' . l:sign_id
53
53
endif
54
54
try
55
55
@@ -58,33 +58,33 @@ let s:sign_ids = {}
58
58
\ . ' name=' . a: sign_name
59
59
\ . ' file=' . a: path
60
60
catch
61
- echom v: exception
61
+ " echom v:exception
62
62
endtry
63
63
64
- echom l: command
64
+ " echom l:command
65
65
execute l: command
66
- echom ' Sign placed'
66
+ " echom 'Sign placed'
67
67
return l: sign_id
68
68
endfunction
69
69
70
70
function ! s: sign_unplace (sign_group, location)
71
71
try
72
- echom ' Unplacing signs in group: ' . a: sign_group
72
+ " echom 'Unplacing signs in group: ' . a:sign_group
73
73
let l: file = a: location .buffer
74
- echom ' file: ' . l: file
74
+ " echom 'file: ' . l:file
75
75
if has_key (s: sign_ids , l: file )
76
76
for item in items (s: sign_ids [l: file ])
77
77
if a: sign_group == item[1 ]
78
- echom ' Unplacing sign #' . item[0 ] . ' From file ' . l: file
78
+ " echom 'Unplacing sign #' . item[0] . ' From file ' . l:file
79
79
execute ' sign unplace ' . item[0 ] . ' file=' . l: file
80
80
unlet s: sign_ids [l: file ][item[0 ]]
81
81
endif
82
82
endfor
83
83
else
84
- echom ' No signs found for the file'
84
+ " echom 'No signs found for the file'
85
85
endif
86
86
catch
87
- echom v: exception
87
+ " echom v:exception
88
88
endtry
89
89
endfunction
90
90
@@ -166,11 +166,11 @@ function! s:undefine_signs() abort
166
166
endfunction
167
167
168
168
function ! lsp#ui#vim#signs#set (server_name, data) abort
169
- echom ' signset'
169
+ " echom 'signset'
170
170
if ! s: supports_signs | return | endif
171
- echom ' signs supported'
171
+ " echom 'signs supported'
172
172
if ! s: enabled | return | endif
173
- echom ' signs enabled'
173
+ " echom 'signs enabled'
174
174
175
175
if lsp#client#is_error (a: data [' response' ])
176
176
return
@@ -182,7 +182,7 @@ function! lsp#ui#vim#signs#set(server_name, data) abort
182
182
let l: path = lsp#utils#uri_to_path (l: uri )
183
183
184
184
" will always replace existing set
185
- echom ' SIGNSET: render cycle'
185
+ " echom 'SIGNSET: render cycle'
186
186
call s: clear_signs (a: server_name , l: path )
187
187
call s: place_signs (a: server_name , l: path , l: diagnostics )
188
188
endfunction
@@ -198,22 +198,22 @@ function! s:get_sign_group(server_name) abort
198
198
endfunction
199
199
200
200
function ! s: place_signs (server_name, path , diagnostics) abort
201
- echom ' place_signs call'
201
+ " echom 'place_signs call'
202
202
if ! s: supports_signs | return | endif
203
- echom ' signs supported'
203
+ " echom 'signs supported'
204
204
205
205
let l: sign_group = s: get_sign_group (a: server_name )
206
- echom ' sign group: ' . l: sign_group
206
+ " echom 'sign group: ' . l:sign_group
207
207
208
208
if ! empty (a: diagnostics ) && bufnr (a: path ) >= 0
209
- echom ' Displaying signs...'
209
+ " echom 'Displaying signs...'
210
210
for l: item in a: diagnostics
211
211
let l: line = l: item [' range' ][' start' ][' line' ] + 1
212
212
213
213
if has_key (l: item , ' severity' ) && ! empty (l: item [' severity' ])
214
214
let l: sign_name = get (s: severity_sign_names_mapping , l: item [' severity' ], ' LspError' )
215
215
" pass 0 and let vim generate sign id
216
- echom ' Placing sign at line ' . l: line
216
+ " echom 'Placing sign at line ' . l:line
217
217
let l: sign_id = s: sign_place (0 , l: sign_group , l: sign_name , a: path , { ' lnum' : l: line })
218
218
219
219
call lsp#log (' add signs' , l: sign_id )
0 commit comments