Skip to content

Commit f26345d

Browse files
authored
fix: call lsp.start after loading buffer (#508)
Fixes #507
1 parent b0ffa35 commit f26345d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/copilot/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ M.setup = function(opts)
2323
local token_env_set = (os.getenv("GITHUB_COPILOT_TOKEN") ~= nil) or (os.getenv("GH_COPILOT_TOKEN") ~= nil)
2424

2525
if token_env_set then
26-
auth.signin()
26+
vim.schedule(auth.signin)
2727
end
2828

2929
M.setup_done = true

0 commit comments

Comments
 (0)