From 6c39aee1d003278d3a7e7a4109b3b12a616f5b3a Mon Sep 17 00:00:00 2001 From: kj Date: Mon, 8 Sep 2025 09:16:13 -0300 Subject: [PATCH] feat(ai): Integrate gptel-magit Integrates `gptel-magit` to provide AI assistance directly within Magit. Disables `gptel-include-reasoning` as a temporary workaround for an upstream issue (ragnard/gptel-magit#8). --- configs/init-ai.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/init-ai.el b/configs/init-ai.el index e3fb5a5..bee69d8 100644 --- a/configs/init-ai.el +++ b/configs/init-ai.el @@ -39,7 +39,7 @@ (traductor . "Eres un traductor profesional. Traduce a español tomando en cuenta los posibles tecnicismos y nombres que no deberían traducirse.") ) ) - ) + (setopt gptel-include-reasoning nil)) ;; Mantener hasta resolver: https://github.com/ragnard/gptel-magit/issues/8 (use-package copilot :bind (("M-" . copilot-complete) @@ -48,5 +48,9 @@ ("C-" . 'copilot-accept-completion) ("C-" . 'copilot-accept-completion-by-word))) +(use-package gptel-magit + :ensure t + :hook (magit-mode . gptel-magit-install)) + (provide 'init-ai) ;;; init-ai.el ends here