LSP-copilot
GitHub Copilot support for Sublime Text LSP plugin provided through Copilot.vim.
This plugin uses Copilot distribution which uses OpenAI Codex to suggest codes and entire functions in real-time right from your editor.
Prerequisites
- Public network connection.
- Active GitHub Copilot subscription.
Installation
- Install LSP and LSP-copilot via Package Control.
- Restart Sublime Text.
Setup
On the first time use, follow the steps below:
- Open any file.
- Execute
Copilot: Sign In
from the command palette. - Follow the prompts to authenticate LSP-copilot.
- The
User Code
will be auto copied to your clipboard. - Paste the
User Code
into the pop-up GitHub authentication page. - Return to Sublime Text and press
OK
on the dialog. - If you see a "sign in OK" dialog, LSP-copilot should start working since then.
- The
FAQs
Tab
commits autocompletion rather than Copilot's suggestion
Pressing There is no way for a plugin to know which one is wanted. But you can define your own dedicate keybinding to commit Copilot's suggestion.
{
"keys": ["YOUR_OWN_DEDICATE_KEYBINDING"],
"command": "copilot_accept_completion",
"context": [
{
"key": "setting.copilot.completion.is_visible"
}
]
},
UNABLE_TO_GET_ISSUER_CERT_LOCALLY
error
I see If working behind a VPN and/or Proxy, you may be required to add your CA file into the NODE environment. See below for LSP-copilots support for this.
In LSP-copilot's plugin settings, add the following env
key:
{
"env": {
"NODE_EXTRA_CA_CERTS": "/path/to/certificate.crt",
},
// other custom settings...
}