Skip to content

Commit a6af909

Browse files
committed
fix: make default behavior to attach automatically with most autocmds
Fixes #553
1 parent 1c11d05 commit a6af909

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/copilot/suggestion/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,13 @@ end
485485
---@param context string
486486
local function request_suggestion(context)
487487
logger.trace("suggestion on " .. context)
488-
c.buf_attach()
489488
schedule()
490489
end
491490

492491
---@param context string
493492
local function request_suggestion_when_auto_trigger(context)
493+
c.buf_attach()
494+
494495
if not should_auto_trigger() then
495496
return
496497
end

0 commit comments

Comments
 (0)