-
Hi 👋 I'm trying to build an implementation of github copilot in the Obsidian note-taking app. As Copilot is good with Markdown and programming I think it can work pretty well in Obsidian when writing IT stuff. I saw that this repo has a copilot directory with the Copilot core from the official plugin. This core has an However, I have difficulties to understand how this plugin works, like how and where it is able to send request to the agent and get reply. I'm quite new to Lua and Vim plugin environment so it's not easy haha. In parallel, I check the official Vim plugin but it is written in VimScript so quite different from this one. If you have some information about the copilot workflow (auth, passing context, making request...) and how this plugin implement it (files to check...), I would be grateful. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
After reading some documentation, I understood that the copilot agent is an LSP server so I wrote a node script to spawn the agent process and communicate with the process as an LSP client. I was able to initialize the connection so I retrieve this kind of message :
Do you know what kind of messages I should send to initialize authentication or get completions for example? Thanks! |
Beta Was this translation helpful? Give feedback.
-
I manage to get it working, if you need, you can find example of use in this repo I made : https://github.com/Pierrad/obsidian-github-copilot |
Beta Was this translation helpful? Give feedback.
I manage to get it working, if you need, you can find example of use in this repo I made : https://github.com/Pierrad/obsidian-github-copilot