From 34de9c7f85297454675cb4c4ec3318cc0ea246f5 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Sun, 24 Dec 2023 23:36:18 +0100 Subject: [PATCH] complete: some remaps from my former configuration --- lua/complete.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/complete.lua b/lua/complete.lua index f5d4d6b..0417f89 100644 --- a/lua/complete.lua +++ b/lua/complete.lua @@ -19,10 +19,11 @@ cmp.setup { [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete {}, - [''] = cmp.mapping.confirm { + [''] = cmp.mapping.confirm { behavior = cmp.ConfirmBehavior.Replace, select = true, }, + [''] = cmp.mapping({ i = cmp.mapping.abort(), c = cmp.mapping.close() }), [''] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item()