LSP-copilot
GitHub Copilot support for Sublime Text LSP plugin provided through Copilot.vim.
Details
Installs
- Total 8K
- Win 3K
- Mac 4K
- Linux 2K
Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 6 | 10 | 10 | 16 | 5 | 6 | 4 | 6 | 8 | 3 | 11 | 15 | 6 | 2 | 9 | 8 | 9 | 9 | 4 | 2 | 6 | 11 | 11 | 18 | 10 | 6 | 5 | 8 | 5 | 3 | 9 | 11 | 3 | 5 | 8 | 11 | 2 | 11 | 9 | 7 | 7 | 5 | 9 | 14 | 6 | 7 |
Mac | 14 | 8 | 12 | 9 | 11 | 8 | 12 | 10 | 15 | 11 | 17 | 14 | 0 | 4 | 14 | 10 | 31 | 7 | 12 | 4 | 9 | 11 | 14 | 16 | 8 | 13 | 5 | 4 | 8 | 22 | 9 | 10 | 9 | 5 | 5 | 12 | 14 | 12 | 12 | 5 | 4 | 10 | 11 | 10 | 9 | 9 |
Linux | 4 | 4 | 2 | 6 | 4 | 5 | 3 | 7 | 13 | 6 | 9 | 5 | 8 | 6 | 2 | 5 | 5 | 4 | 11 | 5 | 3 | 2 | 7 | 10 | 10 | 8 | 2 | 5 | 4 | 2 | 6 | 3 | 4 | 3 | 5 | 4 | 5 | 6 | 9 | 6 | 1 | 4 | 3 | 8 | 7 | 7 |
Readme
- Source
- raw.githubusercontent.com
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
Pressing Tab
commits autocompletion rather than Copilot's suggestion
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"
}
]
},
I see UNABLE_TO_GET_ISSUER_CERT_LOCALLY
error
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...
}