From 3e50801ed2c94738b53838c168520a2688df9ef4 Mon Sep 17 00:00:00 2001 From: Eric Dallo Date: Sun, 14 Nov 2021 16:15:56 -0300 Subject: [PATCH] Add to completion items when insert-text --- lsp-completion.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lsp-completion.el b/lsp-completion.el index b5a771bd28c..25fade8a740 100644 --- a/lsp-completion.el +++ b/lsp-completion.el @@ -143,10 +143,13 @@ This will help minimize popup flickering issue in `company-mode'." (cl-defun lsp-completion--make-item (item &key markers prefix) "Make completion item from lsp ITEM and with MARKERS and PREFIX." (-let (((&CompletionItem :label + :insert-text? :sort-text? :_emacsStartPoint start-point) item)) - (propertize label + (propertize (if insert-text? + (concat label "~") + label) 'lsp-completion-item item 'lsp-sort-text sort-text? 'lsp-completion-start-point start-point