mirror of
https://github.com/fredrikr79/nixos.git
synced 2025-12-24 10:00:21 +01:00
copilot.el
This commit is contained in:
3
home.nix
3
home.nix
@@ -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
|
||||
|
||||
@@ -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"))
|
||||
|
||||
@@ -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...
|
||||
|
||||
@@ -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")))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user