copilot.el

This commit is contained in:
2025-03-06 10:18:32 +01:00
parent c9ac07fcdb
commit 40d5e9f1b9
4 changed files with 21 additions and 2 deletions

View File

@@ -78,7 +78,8 @@ in {
mesa.drivers
vulkan-loader
python312Packages.python-lsp-server
python312Packages.numpy
editorconfig-core-c
copilot-cli
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage

View File

@@ -130,3 +130,15 @@
(map! :leader "pv" #'dirvish)
(map! [f5] #'+make/run-last)
;; accept completion from copilot and fallback to company
(use-package! copilot
:hook (prog-mode . copilot-mode)
:bind (:map copilot-completion-map
("<tab>" . 'copilot-accept-completion)
("TAB" . 'copilot-accept-completion)
("C-TAB" . 'copilot-accept-completion-by-word)
("C-<tab>" . 'copilot-accept-completion-by-word)))
;; (add-to-list 'copilot-major-mode-alist '("typescript" . "javascript"))

View File

@@ -21,7 +21,7 @@
;;layout ; auie,ctsrnm is the superior home row
:completion
company ; the ultimate code completion backend
(company +childframe) ; the ultimate code completion backend
(corfu +orderless) ; complete with cap(f), cape and a flying feather!
;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine...

View File

@@ -67,3 +67,9 @@
(package! unity
:recipe (:repo "https://github.com/elizagamedev/unity.el"))
(add-hook 'after-init-hook #'unity-mode)
(package! jsonrpc)
(package! copilot
:recipe (:host github :repo "copilot-emacs/copilot.el" :files ("*.el")))