Skip to content

Commit b16f659

Browse files
committed
fix send info before attach
1 parent b71dcea commit b16f659

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/copilot/copilot_handler.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ M.start = function(params)
3939
root_dir = vim.loop.cwd(),
4040
autostart = true,
4141
on_init = function(client, _)
42-
send_editor_info()
4342
vim.lsp.buf_attach_client(0, client.id)
4443
if vim.fn.has("nvim-0.7") then
4544
vim.api.nvim_create_autocmd({ "BufEnter" }, {
@@ -51,6 +50,7 @@ M.start = function(params)
5150
else
5251
vim.cmd("au BufEnter * lua require('copilot.util').attach_copilot()")
5352
end
53+
send_editor_info()
5454
end,
5555
on_attach = function()
5656
vim.schedule(function()

0 commit comments

Comments
 (0)