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()