From 4be92aa14e6775a6749de6a4398b2e72cc0cd596 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Tue, 7 Feb 2023 15:03:29 +0100 Subject: [PATCH] Confirm only explicitly selected items in autocomp --- lua/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/completion.lua b/lua/completion.lua index 43193ba..8faa285 100644 --- a/lua/completion.lua +++ b/lua/completion.lua @@ -64,7 +64,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()