File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,14 @@ This will help minimize popup flickering issue in `company-mode'."
102102 :group 'lsp-completion
103103 :package-version '(lsp-mode . " 8.0.0" ))
104104
105+ (defcustom lsp-completion-default-behaviour :replace
106+ " Default behaviour of `InsertReplaceEdit' ."
107+ :type '(choice
108+ (const :tag " Default completion inserts" :insert )
109+ (const :tag " Default completion replaces" :replace ))
110+ :group 'lsp-completion
111+ :package-version '(lsp-mode . " 8.0.0" ))
112+
105113(defconst lsp-completion--item-kind
106114 [nil
107115 " Text"
@@ -211,14 +219,6 @@ KEEP-LAST-RESULT if specified."
211219 (setq lsp-completion--cache nil )
212220 (unless keep-last-result (setq lsp-completion--last-result nil )))
213221
214- (defcustom lsp-completion-default-behaviour :replace
215- " Default behaviour of `InsertReplaceEdit' ."
216- :type '(choice
217- (const :tag " Default completion inserts" :insert )
218- (const :tag " Default completion replaces" :replace ))
219- :group 'lsp-mode
220- :package-version '(lsp-mode . " 8.0.0" ))
221-
222222(lsp-defun lsp-completion--guess-prefix ((item &as &CompletionItem :text-edit? ))
223223 " Guess ITEM's prefix start point according to following heuristics:
224224- If `textEdit' exists, use insertion range start as prefix start point.
You can’t perform that action at this time.
0 commit comments