Skip to content

Commit 36db875

Browse files
committed
[lsp-ui-peek] Change default value of lsp-ui-peek-force-fontify
Add warnings on the use of lsp-ui-peek-force-fontify and lsp-ui-peek-expand-function
1 parent 8d0c684 commit 36db875

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lsp-ui-peek.el

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@
6161
:type 'integer
6262
:group 'lsp-ui-peek)
6363

64-
(defcustom lsp-ui-peek-force-fontify nil
64+
(defcustom lsp-ui-peek-force-fontify t
6565
"Force to fontify chunks of code (use semantics colors).
66-
WARNING: This can heavily slow the processing."
66+
WARNING: This can heavily slow the processing when `lsp-ui-peek-expand-function'
67+
expands more than 1 file. It is recommended to keeps the default value of
68+
`lsp-ui-peek-expand-function' when this variable is non-nil."
6769
:type 'boolean
6870
:group 'lsp-ui-peek)
6971

@@ -134,7 +136,10 @@ deform the whole overlay."
134136
"A function used to determinate which file(s) to expand in the list of xrefs.
135137
The function takes one parameter: a list of cons where the car is the
136138
filename and the cdr is the number of references in that file.
137-
It should returns a list of filenames to expand.")
139+
It should returns a list of filenames to expand.
140+
WARNING: If you change this variable and expand more than 1 file, it is
141+
recommended to set `lsp-ui-peek-force-fontify' to nil, otherwise it will cause
142+
performances issues.")
138143

139144
(defvar-local lsp-ui-peek--overlay nil)
140145
(defvar-local lsp-ui-peek--list nil)

0 commit comments

Comments
 (0)