65

GitHub - zerolfx/copilot.el: Unofficial Copilot plugin for Emacs.

 2 years ago
source link: https://github.com/zerolfx/copilot.el
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copilot.el

Copilot.el is an Emacs plugin for GitHub Copilot.

Warning: This plugin is unofficial and based on binaries provided by copilot.vim.

Warning: This plugin is under development.

Note: You need access to Copilot technical preview to use this plugin.

Installation

  1. Install Neovim and copilot.vim plugin. Follow instructions in copilot.vim to setup copilot (run :Copilot setup inside Neovim).

  2. Clone this repo.

  3. Copy copilot.vim/copilot/dist directory to copilot.el repo root.

  4. Modify your emacs configuration to load and setup copilot.el

;; Configuration example for Spacemacs (inside your user-config):

;; Load copilot.el, modify this path to your local path.
(load-file "~/.emacs.d/copilot.el")

;; Use tab for completion. Assumes that you use company-mode for completion.
(define-key company-mode-map (kbd "<tab>") (lambda ()
                                              (interactive)
                                              (or (copilot-accept-completion) (company-indent-or-complete-common nil))))
;; Enable copilot
(copilot-enable)
  1. Enjoy!

Roadmap

  • Setup Copilot without Neovim
  • Cycle through suggestions
  • Add package to MELPA
  • Test compatibility with vanilla Emacs and other auto completion packages

Thanks

These projects helped me a lot:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK