You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: layers/+web-services/github-copilot/README.org
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@
6
6
- [[#description][Description]]
7
7
- [[#features][Features:]]
8
8
- [[#install][Install]]
9
+
- [[#configuratiom][Configuratiom]]
10
+
- [[#key-bindings][Key bindings]]
9
11
10
12
* Description
11
13
This layer enables usage of [[https://github.com/features/copilot][GitHub Copilot]] in Spacemacs using [[https://github.com/copilot-emacs/copilot.el][copilot.el]].
@@ -17,3 +19,33 @@ This layer enables usage of [[https://github.com/features/copilot][GitHub Copilo
17
19
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
18
20
add =github-copilot= to the existing =dotspacemacs-configuration-layers= list in this
19
21
file.
22
+
23
+
In addition the github/copilot-language-server must be installed either manually with:
24
+
#+BEGIN_SRC sh
25
+
$ npm install -g @github/copilot-language-server
26
+
#+END_SRC
27
+
28
+
or via elisp by pressing:
29
+
#+BEGIN_SRC elisp
30
+
SPC SPC copilot-install-server
31
+
#+END_SRC
32
+
33
+
** Configuratiom
34
+
Per default the service will run for every mode derived from prog mode. It will do
35
+
automatic code suggestions. Key bindings for accepting an advice are bound automatically
36
+
but can be rebound.
37
+
38
+
In order to work properly =SPC SPC copilot login= must be have been run once on the device
39
+
especially if a commercial license is available.
40
+
41
+
The mode itself tries to defer the language from the major mode however if this fails it may
42
+
be necessary to add the new binding manually. Details for this can be found [[https://github.com/copilot-emacs/copilot.el?tab=readme-ov-file#programming-language-detection][here]].
0 commit comments