diff --git a/lua/cmp/view/native_entries_view.lua b/lua/cmp/view/native_entries_view.lua index 0602f53..6776361 100644 --- a/lua/cmp/view/native_entries_view.lua +++ b/lua/cmp/view/native_entries_view.lua @@ -71,7 +71,7 @@ end native_entries_view.close = function(self) if api.is_suitable_mode() then - vim.fn.complete(1, {}) + vim.api.nvim_select_popupmenu_item(-1, false, true, {}) end self.offset = -1 self.entries = {}