diff --git a/lua/conf/plugins/cmp.lua b/lua/conf/plugins/cmp.lua index 9ce0878..ebca929 100644 --- a/lua/conf/plugins/cmp.lua +++ b/lua/conf/plugins/cmp.lua @@ -108,12 +108,7 @@ return { 'hrsh7th/nvim-cmp', -- mappings mapping = cmp.mapping.preset.insert { [""] = cmp.mapping(function() - if cmp.get_active_entry() then - cmp.confirm({ select = true }) - elseif cmp.visible() and not cmp.get_active_entry() then - cmp.select_next_item() - cmp.confirm({ select = true }) - end + cmp.confirm({ select = true }) end, { "i", "c" }), [""] = cmp.mapping(function()