Variable: eglot-completion-replace-semantics

eglot-completion-replace-semantics is a customizable variable defined in eglot.el.gz.

Value

t

Documentation

If nil, use "insert semantics" in LSP completions.

Suppose point is after "foo" in the word "foo123", and a completion changes "foo" to "foobar". By default, replace the whole word, giving "foobar". If this variable is nil, text after point is unchanged, giving "foobar123".

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defcustom eglot-completion-replace-semantics t
  "If nil, use \"insert semantics\" in LSP completions.
Suppose point is after \"foo\" in the word \"foo123\", and a completion
changes \"foo\" to \"foobar\".  By default, replace the whole word,
giving \"foobar\".  If this variable is nil, text after point is
unchanged, giving \"foobar123\"."
  :type 'boolean)