Enable copilot mode
This commit is contained in:
parent
ad0547966a
commit
d331aadba2
1 changed files with 10 additions and 13 deletions
|
|
@ -69,16 +69,13 @@
|
||||||
(completion-list-mode . consult-preview-at-point-mode))
|
(completion-list-mode . consult-preview-at-point-mode))
|
||||||
|
|
||||||
(use-package copilot
|
(use-package copilot
|
||||||
:disabled
|
:hook (prog-mode . copilot-mode)
|
||||||
:bind ("M-C-<return>" . copilot-accept-completion)
|
:bind (("M-C-<return>" . copilot-accept-completion)
|
||||||
:commands (copilot-login global-copilot-mode)
|
("C-<tab>" . copilot-accept-completion-by-word))
|
||||||
|
:commands (copilot-login)
|
||||||
:config
|
:config
|
||||||
(use-package dash)
|
(setq copilot-indent-offset-warning-disable t
|
||||||
(use-package editorconfig)
|
copilot-max-char -1)
|
||||||
(use-package f)
|
|
||||||
(use-package s)
|
|
||||||
|
|
||||||
(setq copilot-indent-offset-warning-disable t)
|
|
||||||
(defun to/copilot-disable-predicate ()
|
(defun to/copilot-disable-predicate ()
|
||||||
(member major-mode '(shell-mode
|
(member major-mode '(shell-mode
|
||||||
eshell-mode
|
eshell-mode
|
||||||
|
|
@ -86,10 +83,10 @@
|
||||||
vterm-mode
|
vterm-mode
|
||||||
compilation-mode
|
compilation-mode
|
||||||
debugger-mode
|
debugger-mode
|
||||||
dired-mode-hook
|
dired-mode
|
||||||
compilation-mode-hook
|
compilation-mode
|
||||||
minibuffer-mode-hook
|
minibuffer-mode
|
||||||
vertico-mode-hook)))
|
vertico-mode)))
|
||||||
(add-to-list 'copilot-disable-predicates #'to/copilot-disable-predicate))
|
(add-to-list 'copilot-disable-predicates #'to/copilot-disable-predicate))
|
||||||
|
|
||||||
(use-package corfu
|
(use-package corfu
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue