ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-copilot

GitHub Copilot support for Sublime Text LSP plugin provided through Copilot.vim.

Details

Installs

  • Total 1K
  • Win 449
  • Mac 551
  • Linux 275
Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17
Windows 0 1 5 1 4 2 4 3 4 8 8 5 3 6 5 2 7 10 2 2 5 6 9 1 3 3 3 7 7 3 6 3 3 1 1 7 5 2 3 1 3 2 10 5 6 9
Mac 1 7 8 6 4 7 5 4 2 9 6 4 5 4 13 12 5 7 3 5 4 5 8 4 4 3 3 2 6 6 8 4 4 3 9 3 9 4 8 4 5 7 4 6 7 7
Linux 0 2 4 4 3 1 1 5 2 2 2 2 0 2 1 2 4 3 3 1 1 2 2 3 2 0 1 2 4 6 3 6 2 3 4 4 4 6 4 0 2 1 6 2 3 0

Readme

Source
raw.​githubusercontent.​com

LSP-copilot

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

  1. Install LSP and LSP-copilot via Package Control.
  2. Restart Sublime Text.

Setup

On the first time use, follow the steps below:

  1. Execute Copilot: Sign In from the command palette.
  2. Follow the prompts to authenticate LSP-copilot.
    1. The User Code will be auto copied to your clipboard.
    2. Paste the User Code into the pop-up GitHub authentication page.
    3. Return to Sublime Text and press OK on the dialog.
    4. If you see a “sign in OK” dialog, LSP-copilot should start working since then.

FAQs

My Sublime Text freezes after installing this plugin

It's likely that you are using Node v18, which is unsupported by the copilot server. For workarounds, see #51.

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...
 }