Skip to content

Commit b41d4c9

Browse files
committed
fix(suggestion): allow next/prev to schedule with auto_trigger=true
1 parent ca68fc3 commit b41d4c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/copilot/suggestion.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ local function schedule()
369369
end
370370

371371
function mod.next()
372-
if not copilot._copilot.params and not should_auto_trigger() then
372+
-- no suggestion request yet
373+
if not copilot._copilot.first then
373374
schedule()
374375
return
375376
end
@@ -380,7 +381,8 @@ function mod.next()
380381
end
381382

382383
function mod.prev()
383-
if not copilot._copilot.params and not should_auto_trigger() then
384+
-- no suggestion request yet
385+
if not copilot._copilot.first then
384386
schedule()
385387
return
386388
end

0 commit comments

Comments
 (0)