diff --git a/lua/cmp/view/custom_entries_view.lua b/lua/cmp/view/custom_entries_view.lua index 338f94d..6360056 100644 --- a/lua/cmp/view/custom_entries_view.lua +++ b/lua/cmp/view/custom_entries_view.lua @@ -162,7 +162,7 @@ custom_entries_view.open = function(self, offset, entries) if preselect > 0 and config.get().preselect == types.cmp.PreselectMode.Item then self:preselect(preselect) - elseif string.match(config.get().completion.completeopt, 'noinsert') then + elseif not string.match(config.get().completion.completeopt, 'noselect') then self:preselect(1) else self:draw()