From aa149d21ef2f398c35fa4c19f39f0b00479607fc Mon Sep 17 00:00:00 2001 From: Andy Teijelo Date: Thu, 2 Feb 2023 10:53:18 -0500 Subject: [PATCH] Don't pre-select 1st cmp suggestion by default This prevents accidentally expanding a completion when trying to start a newline. --- lua/user/cmp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/user/cmp.lua b/lua/user/cmp.lua index 1eb816b..a899b6a 100644 --- a/lua/user/cmp.lua +++ b/lua/user/cmp.lua @@ -62,7 +62,7 @@ cmp.setup({ }), -- Accept currently selected item. If none selected, `select` first item. -- Set `select` to `false` to only confirm explicitly selected items. - [""] = cmp.mapping.confirm({ select = true }), + [""] = cmp.mapping.confirm({ select = false }), [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item()