[Emacs] Better copilot settings

This commit is contained in:
Lucien Cartier-Tilet 2022-06-26 22:24:03 +02:00
parent 3bf05c8141
commit 1c2c33fd8c
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -5855,9 +5855,12 @@ to anything user-defined. Lets 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. Lets 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