From c7945b9791579a84c4ec7022248615f860f6cb8b Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 7 Feb 2025 07:30:04 +0100 Subject: [PATCH] dev: Do not replace the word after completion The default behavior when autocompleting infront of a word, without having a whitespace in between, is to replaice the trailing word. This change should prevent that from happening. --- .emacs.d/config/dev.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.emacs.d/config/dev.el b/.emacs.d/config/dev.el index 15f4b1f..1a22ee9 100644 --- a/.emacs.d/config/dev.el +++ b/.emacs.d/config/dev.el @@ -40,7 +40,9 @@ (add-hook 'prog-mode-hook #'flyspell-prog-mode) (use-package lsp-mode - :ensure t) + :ensure t + :config + (setq lsp-completion-default-behaviour ':insert)) (use-package lsp-ui :ensure t