Modify copilot configuration

This commit is contained in:
Tobias Ostner 2026-01-02 11:35:44 +01:00
parent 1578586f4c
commit d370884f04

View file

@ -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