Skip to content

Commit

Permalink
Fix executing cycle_or_complete() after clear()
Browse files Browse the repository at this point in the history
First part of fixing #2 issue
  • Loading branch information
monkoose committed Apr 2, 2024
1 parent 8d8d816 commit a976109
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/neocodeium/completer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ function Completer:cycle_or_complete(n)
if self:curr_item() then
self:cycle(n)
else
-- required to show suggestions after self:clear()
vim.cmd.doautocmd("CursorMovedI")
self:request()
end
end
Expand Down

0 comments on commit a976109

Please sign in to comment.