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
|
||||
:hook (prog-mode . copilot-mode)
|
||||
:bind (("M-C-<return>" . copilot-accept-completion)
|
||||
("C-<tab>" . copilot-accept-completion-by-word))
|
||||
:bind (("C-<tab>" . copilot-accept-completion)
|
||||
("M-C-<tab>" . copilot-accept-completion-by-word)
|
||||
("C-n" . copilot-next-completion)
|
||||
("C-p" . copilot-previous-completion))
|
||||
:commands (copilot-login)
|
||||
:custom (copilot-indent-offset-warning-disable t)
|
||||
:config
|
||||
(setq copilot-indent-offset-warning-disable t
|
||||
copilot-max-char -1)
|
||||
(add-to-list 'copilot-indentation-alist '(prog-mode 2))
|
||||
(defun to/copilot-disable-predicate ()
|
||||
(member major-mode '(shell-mode
|
||||
eshell-mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue