diff --git a/org/config/emacs.org b/org/config/emacs.org index b016324..cb83a79 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -5855,9 +5855,12 @@ to anything user-defined. Let’s all-the-iconify this! :repo "zerolfx/copilot.el" :files ("dist" "copilot.el") :build t) - :custom - (copilot-enable-predicates '(evil-insert-state-p)) :config + (csetq copilot-enable-predicates '(evil-insert-state-p) + copilot-node-executable + (expand-file-name ".local/share/nvm/versions/node/v17.9.1/bin/node" + (getenv "HOME"))) + (defun my/copilot-tab () (interactive) (or (copilot-accept-completion) @@ -5868,7 +5871,17 @@ to anything user-defined. Let’s all-the-iconify this! (phundrak/evil :packages '(copilot company) :keymaps '(company-mode-map company-active-map) - "TAB" #'my/copilot-tab))) + "TAB" #'my/copilot-tab)) + :general + (phundrak/major-leader-key + :packages 'copilot + "C" '(:ignore t :wk "Copilot") + "Cc" #'copilot-accept-completion + "CC" #'copilot-complete + "Cm" #'copilot-mode + "Cd" #'copilot-diagnose + "Cn" #'copilot-next-completion + "Cp" #'copilot-previous-completion)) #+end_src **** Flycheck