Change hints on hydra-git-gutter.

This commit is contained in:
KJ 2024-04-18 15:31:48 -04:00
parent 870e9a44ac
commit 1f93a57866
1 changed files with 15 additions and 8 deletions

View File

@ -121,20 +121,27 @@
:hook
(elpaca-after-init . global-git-gutter-mode)
:config
(defhydra hydra-git-gutter nil
"git hunk"
("p" git-gutter:previous-hunk "previous")
("n" git-gutter:next-hunk "next")
("s" git-gutter:stage-hunk "stage")
("r" git-gutter:revert-hunk "revert")
("m" git-gutter:mark-hunk "mark")
("SPC" git-gutter:toggle-popup-hunk "toggle diffinfo"))
(defhydra hydra-git-gutter (:hint nil)
"
^Navigation^ | ^Actions^ | ^Others^
-^-----------^-+-^----^--------+-^-------^----------
_p_: previous | _s_: stage | _m_: mark
_n_: next | _r_: revert | _SPC_: toggle info
-^-----------^-+-^----^--------+-^-------^----------
"
("p" git-gutter:previous-hunk)
("n" git-gutter:next-hunk)
("s" git-gutter:stage-hunk)
("r" git-gutter:revert-hunk)
("m" git-gutter:mark-hunkmark)
("SPC" git-gutter:toggle-popup-hunk))
)
;; Cliente LLM (ollama, chatgpt, gemini, etc.)
(use-package gptel
:defer t
:config
(gptel-make-gemini "Gemini" :key "AIzaSyAlNOhIWFW8c9GgeVmmURcf9OV64gYaZcQ" :stream t)
(setq gptel-model "mistral:latest"
gptel-backend (gptel-make-ollama "Ollama"
:host "localhost:11434"