fix copilot keybinds
This commit is contained in:
parent
13b38d3275
commit
a476ecd820
14
init.org
14
init.org
|
|
@ -1434,12 +1434,16 @@ Use =inheritenv= and =envrc= to load ~.envrc~ direnv files:
|
||||||
:straight (:host github :repo "copilot-emacs/copilot.el" :files ("*.el"))
|
:straight (:host github :repo "copilot-emacs/copilot.el" :files ("*.el"))
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook ((prog-mode markdown-mode conf-toml-mode) . copilot-mode)
|
:hook ((prog-mode markdown-mode conf-toml-mode) . copilot-mode)
|
||||||
:bind (
|
:bind (("TAB" . 'copilot-accept-completion)
|
||||||
("TAB" . 'copilot-accept-completion)
|
|
||||||
("C-<tab>" . 'copilot-accept-completion)
|
|
||||||
("M-<tab>" . 'copilot-accept-completion-by-word)
|
("M-<tab>" . 'copilot-accept-completion-by-word)
|
||||||
("C-S-<tab>" . 'copilot-accept-completion-by-line)
|
("C-<tab>" . 'copilot-accept-completion)
|
||||||
)
|
("C-M-<tab>" . 'copilot-accept-completion-by-line))
|
||||||
|
:bind (:map copilot-completion-map
|
||||||
|
("<tab>" . 'copilot-accept-completion)
|
||||||
|
("TAB" . 'copilot-accept-completion)
|
||||||
|
("C-<tab>" . 'copilot-accept-completion)
|
||||||
|
("M-<tab>" . 'copilot-accept-completion-by-word)
|
||||||
|
("C-M-<tab>" . 'copilot-accept-completion-by-line))
|
||||||
:config
|
:config
|
||||||
(setq copilot-indent-offset-warning-disable t
|
(setq copilot-indent-offset-warning-disable t
|
||||||
copilot-max-char-warning-disable t)
|
copilot-max-char-warning-disable t)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue