Skip to content

refactor: facilitate integration from copilot.lua - #53

Merged
Xuyuanp merged 2 commits into
copilotlsp-nvim:mainfrom
AntoineGS:copilotlua_integration
Sep 19, 2025
Merged

refactor: facilitate integration from copilot.lua#53
Xuyuanp merged 2 commits into
copilotlsp-nvim:mainfrom
AntoineGS:copilotlua_integration

Conversation

@AntoineGS

@AntoineGS AntoineGS commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

PR 2 or 3

@AntoineGS
AntoineGS force-pushed the copilotlua_integration branch 2 times, most recently from 9f86f0d to 1c3b631 Compare September 6, 2025 01:43
@tris203

tris203 commented Sep 6, 2025

Copy link
Copy Markdown
Collaborator

I don't really understand the API wrapper. Why can't we just use the functions directly?

It seems unnecessary

@AntoineGS

Copy link
Copy Markdown
Contributor Author

I'm fine either way but after spending a few months maintaining copilot.lua I have often wished there was another level of redirection for others to use. That way the implementation can move as much as we want without breaking external users since you would only redirect the function in api.lua to ensure compatibility. It also centralizes/documents the various integration points.

@AntoineGS
AntoineGS force-pushed the copilotlua_integration branch from 1c3b631 to c89ca7e Compare September 12, 2025 00:04
@AntoineGS
AntoineGS marked this pull request as ready for review September 12, 2025 00:08
@AntoineGS

Copy link
Copy Markdown
Contributor Author

Not sure why stylua is complaining, I suspect some sort of encoding issue but I have not been able to resolve it :(

PS: The copilot.lua code is ready to merge once this is merged!

Comment thread lua/copilot-lsp/api.lua Outdated
Comment thread lua/copilot-lsp/util.lua Outdated
@AntoineGS
AntoineGS force-pushed the copilotlua_integration branch 2 times, most recently from 9e0d39f to 9dbd77d Compare September 12, 2025 17:10
@AntoineGS

Copy link
Copy Markdown
Contributor Author

No worries I moved it to copilot.lua as to keep an abstraction between the two!

tris203
tris203 previously approved these changes Sep 13, 2025
@AntoineGS

Copy link
Copy Markdown
Contributor Author

Just checking in, in case you were waiting on something from me before merging :P

Comment thread README.md Outdated
@AntoineGS

Copy link
Copy Markdown
Contributor Author

done!

@Xuyuanp
Xuyuanp merged commit 5030766 into copilotlsp-nvim:main Sep 19, 2025
9 checks passed
@AntoineGS
AntoineGS deleted the copilotlua_integration branch September 20, 2025 00:06
@AntoineGS

Copy link
Copy Markdown
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants