Skip to content

Commit 5fafaa3

Browse files
Disable highlight ref by default (#492)
* disable highlight references by default since it is executes request on every cursor change * update higlight text * fix doc
1 parent 698ecca commit 5fafaa3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ Virtual text will use the same highlight groups as signs feature.
164164

165165
### Highlight references
166166

167-
References to the symbol under the cursor are highlighted by default. To
168-
disable, set in your configuration:
167+
Highlight references to the symbol under the cursor. To enable, set in your
168+
configuration:
169169

170170
```viml
171-
let g:lsp_highlight_references_enabled = 0
171+
let g:lsp_highlight_references_enabled = 1
172172
```
173173

174174
To change the style of the highlighting, you can set or link the `lspReference`

doc/vim-lsp.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ g:lsp_use_event_queue *g:lsp_use_event_queue*
405405

406406
g:lsp_highlight_references_enabled *g:lsp_highlight_references_enabled*
407407
Type: |Number|
408-
Default: `1`
408+
Default: `0`
409409

410410
Enable highlighting of the references to the symbol under the cursor.
411411

plugin/lsp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let g:lsp_preview_keep_focus = get(g:, 'lsp_preview_keep_focus', 1)
2727
let g:lsp_use_event_queue = get(g:, 'lsp_use_event_queue', has('nvim') || has('patch-8.1.0889'))
2828
let g:lsp_insert_text_enabled= get(g:, 'lsp_insert_text_enabled', 1)
2929
let g:lsp_text_edit_enabled = get(g:, 'lsp_text_edit_enabled', has('patch-8.0.1493'))
30-
let g:lsp_highlight_references_enabled = get(g:, 'lsp_highlight_references_enabled', 1)
30+
let g:lsp_highlight_references_enabled = get(g:, 'lsp_highlight_references_enabled', 0)
3131
let g:lsp_preview_float = get(g:, 'lsp_preview_float', 1)
3232
let g:lsp_preview_autoclose = get(g:, 'lsp_preview_autoclose', 1)
3333
let g:lsp_preview_doubletap = get(g:, 'lsp_preview_doubletap', [function('lsp#ui#vim#output#focuspreview')])

0 commit comments

Comments
 (0)