File tree 1 file changed +3
-11
lines changed 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,6 @@ ignored."
67
67
:group 'lsp-completion
68
68
:package-version '(lsp-mode . " 7.0.1" ))
69
69
70
- (defcustom lsp-completion-show-detail nil
71
- " Whether or not to show detail of completion candidates."
72
- :type 'boolean
73
- :group 'lsp-completion )
74
-
75
70
(defcustom lsp-completion-no-cache nil
76
71
" Whether or not caching the returned completions from server."
77
72
:type 'boolean
@@ -248,18 +243,15 @@ The CLEANUP-FN will be called to cleanup."
248
243
(lsp:label-details-description? label-details?) ))
249
244
(-let (((&LabelDetails :detail? :description? ) label-details?) )
250
245
(concat
251
- (unless (and lsp-completion-show-detail
252
- detail?
253
- (string-prefix-p " " detail?) )
246
+ (unless (and detail? (string-prefix-p " " detail?) )
254
247
" " )
255
- (when lsp-completion-show-detail
256
- (s-replace " \r " " " detail?) )
248
+ (s-replace " \r " " " detail?)
257
249
(unless (or omit-description
258
250
(and description? (string-prefix-p " " description?) ))
259
251
" " )
260
252
(unless omit-description
261
253
description?) )))
262
- (lsp-completion-show- detail
254
+ (detail?
263
255
(concat (unless (and detail? (string-prefix-p " " detail?) )
264
256
" " )
265
257
(s-replace " \r " " " detail?) )))))
You can’t perform that action at this time.
0 commit comments