Modify copilot configuration
This commit is contained in:
parent
1578586f4c
commit
d370884f04
1 changed files with 6 additions and 4 deletions
|
|
@ -68,12 +68,14 @@
|
||||||
|
|
||||||
(use-package copilot
|
(use-package copilot
|
||||||
:hook (prog-mode . copilot-mode)
|
:hook (prog-mode . copilot-mode)
|
||||||
:bind (("M-C-<return>" . copilot-accept-completion)
|
:bind (("C-<tab>" . copilot-accept-completion)
|
||||||
("C-<tab>" . copilot-accept-completion-by-word))
|
("M-C-<tab>" . copilot-accept-completion-by-word)
|
||||||
|
("C-n" . copilot-next-completion)
|
||||||
|
("C-p" . copilot-previous-completion))
|
||||||
:commands (copilot-login)
|
:commands (copilot-login)
|
||||||
|
:custom (copilot-indent-offset-warning-disable t)
|
||||||
:config
|
:config
|
||||||
(setq copilot-indent-offset-warning-disable t
|
(add-to-list 'copilot-indentation-alist '(prog-mode 2))
|
||||||
copilot-max-char -1)
|
|
||||||
(defun to/copilot-disable-predicate ()
|
(defun to/copilot-disable-predicate ()
|
||||||
(member major-mode '(shell-mode
|
(member major-mode '(shell-mode
|
||||||
eshell-mode
|
eshell-mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue