From c3c349c8302c4318a66c3c1a1a4d79f3d746381d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jesus?= <35274086+AndreJesusBrito@users.noreply.github.com> Date: Thu, 8 Jun 2023 00:51:39 +0100 Subject: [PATCH] Change cmp to insert completion instead of replacing the current word (#2083) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I find this annoying and if we want to actually delete the word we can simply just dw in vim Co-authored-by: andré Jesus --- lua/plugins/configs/cmp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugins/configs/cmp.lua b/lua/plugins/configs/cmp.lua index 32e0129..365ec2c 100644 --- a/lua/plugins/configs/cmp.lua +++ b/lua/plugins/configs/cmp.lua @@ -76,8 +76,8 @@ local options = { [""] = cmp.mapping.complete(), [""] = cmp.mapping.close(), [""] = cmp.mapping.confirm { - behavior = cmp.ConfirmBehavior.Replace, - select = false, + behavior = cmp.ConfirmBehavior.Insert, + select = true, }, [""] = cmp.mapping(function(fallback) if cmp.visible() then