Skip to content

Commit 9575fd2

Browse files
authored
Fix lsp-completion-default-behaviour custom group (#4579)
1 parent 1063d2d commit 9575fd2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lsp-completion.el

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)