This commit is contained in:
hrsh7th
2022-08-20 21:58:53 +09:00
parent 7e67df513a
commit 3cc0c182ec
2 changed files with 8 additions and 9 deletions

View File

@@ -77,8 +77,7 @@ native_entries_view.open = function(self, offset, entries)
end
native_entries_view.close = function(self)
if api.is_suitable_mode() and self:visible() then
vim.fn.complete(1, {})
if api.is_insert_mode() and self:visible() then
vim.api.nvim_select_popupmenu_item(-1, false, true, {})
end
self.offset = -1