File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 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.
135137The function takes one parameter: a list of cons where the car is the
136138filename 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 )
You can’t perform that action at this time.
0 commit comments