Add copilot

This commit is contained in:
Andreas Zweili 2023-12-13 14:56:21 +01:00
parent 4a4a7abfca
commit 6e824312e0
5 changed files with 21 additions and 0 deletions

3
.gitmodules vendored
View File

@ -0,0 +1,3 @@
[submodule "home-manager/modules/programs/emacs/emacs.d/lib/copilot"]
path = home-manager/modules/programs/emacs/emacs.d/lib/copilot
url = https://github.com/zerolfx/copilot.el.git

View File

@ -11,6 +11,7 @@ in
home.packages = with pkgs; [
fd
multimarkdown
nodejs_20 # required for copilot
unstable.nixd # Nix language server
pandoc
ripgrep

View File

@ -0,0 +1,15 @@
(use-package dash
:defer t)
(use-package editorconfig
:defer t)
(use-package s
:defer t)
(use-package copilot
:load-path "~/.nixos/home-manager/modules/programs/emacs/emacs.d/lib/copilot"
:hook (prog-mode-hook . copilot-mode)
:config
(define-key copilot-completion-map (kbd "<tab>") 'copilot-accept-completion)
(define-key copilot-completion-map (kbd "TAB") 'copilot-accept-completion))

@ -0,0 +1 @@
Subproject commit ba1d6018fdc2d735fecab1b2dcd4b5ea121b05ac

View File

@ -31,6 +31,7 @@
;; programming
(load-file (modules-path "az_annotate.el"))
(load-file (modules-path "az_company.el"))
(load-file (modules-path "az_copilot.el"))
(load-file (modules-path "az_direnv.el"))
(load-file (modules-path "az_format_all.el"))
(load-file (modules-path "az_flycheck.el"))