[Emacs] Better copilot settings
This commit is contained in:
parent
3bf05c8141
commit
1c2c33fd8c
@ -5855,9 +5855,12 @@ to anything user-defined. Let’s all-the-iconify this!
|
|||||||
:repo "zerolfx/copilot.el"
|
:repo "zerolfx/copilot.el"
|
||||||
:files ("dist" "copilot.el")
|
:files ("dist" "copilot.el")
|
||||||
:build t)
|
:build t)
|
||||||
:custom
|
|
||||||
(copilot-enable-predicates '(evil-insert-state-p))
|
|
||||||
:config
|
: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 ()
|
(defun my/copilot-tab ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(or (copilot-accept-completion)
|
(or (copilot-accept-completion)
|
||||||
@ -5868,7 +5871,17 @@ to anything user-defined. Let’s all-the-iconify this!
|
|||||||
(phundrak/evil
|
(phundrak/evil
|
||||||
:packages '(copilot company)
|
:packages '(copilot company)
|
||||||
:keymaps '(company-mode-map company-active-map)
|
: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
|
#+end_src
|
||||||
|
|
||||||
**** Flycheck
|
**** Flycheck
|
||||||
|
Loading…
Reference in New Issue
Block a user