File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -183,20 +183,16 @@ function! s:in_reference(reference_list) abort
183
183
endfunction
184
184
185
185
function ! s: init_reference_highlight (buf ) abort
186
- if ! empty (getbufvar (a: buf , ' lsp_did_reference_setup' ))
187
- return
188
- endif
189
-
190
186
if s: use_vim_textprops
191
- call prop_type_add ( ' vim-lsp-reference-highlight ' , {
187
+ let l: props = {
192
188
\ ' bufnr' : a: buf ,
193
189
\ ' highlight' : ' lspReference' ,
194
190
\ ' combine' : v: true ,
195
191
\ ' priority' : lsp#internal#textprop#priority (' document_highlight' )
196
- \ })
192
+ \ }
193
+ call prop_type_delete (' vim-lsp-reference-highlight' , l: props )
194
+ call prop_type_add (' vim-lsp-reference-highlight' , l: props )
197
195
endif
198
-
199
- call setbufvar (a: buf , ' lsp_did_reference_setup' , 1 )
200
196
endfunction
201
197
202
198
" Cyclically move between references by `offset` occurrences.
You can’t perform that action at this time.
0 commit comments