Skip to content

Commit 2176417

Browse files
thomasfaingnaertprabirshrestha
authored andcommitted
Fix documentHighlight always being sent (#413)
1 parent 1790680 commit 2176417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/lsp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function! s:register_events() abort
162162
endif
163163
autocmd CursorMoved * call s:on_cursor_moved()
164164
autocmd BufWinEnter,BufWinLeave,InsertEnter * call lsp#ui#vim#references#clean_references()
165-
autocmd CursorMoved * call lsp#ui#vim#references#highlight(v:false)
165+
autocmd CursorMoved * if g:lsp_highlight_references_enabled | call lsp#ui#vim#references#highlight(v:false) | endif
166166
augroup END
167167
call s:on_text_document_did_open()
168168
endfunction

0 commit comments

Comments
 (0)