Add hydra config for git-gutter.
This commit is contained in:
parent
d96a05fb7e
commit
370651ebec
@ -58,5 +58,13 @@ Saves to a temp file and puts the filename in the kill ring."
|
||||
;; Borrar espacios, tabs y saltos de línea innecesarios al guardar
|
||||
(add-hook 'before-save-hook 'delete-trailing-whitespace)
|
||||
|
||||
;; Mostrar y ocultar el diff de la línea de git-gutter
|
||||
(defun git-gutter:toggle-popup-hunk ()
|
||||
"Toggle 'git-gutter' hunk window."
|
||||
(interactive)
|
||||
(if (and (get-buffer "*git-gutter:diff*") (window-live-p (git-gutter:popup-buffer-window)))
|
||||
(delete-window (git-gutter:popup-buffer-window))
|
||||
(git-gutter:popup-hunk)))
|
||||
|
||||
(provide 'init-functions)
|
||||
;;; init-functions.el ends here.
|
||||
|
@ -119,7 +119,17 @@
|
||||
(use-package git-gutter
|
||||
:defer t
|
||||
:hook
|
||||
(elpaca-after-init . global-git-gutter-mode))
|
||||
(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"))
|
||||
)
|
||||
|
||||
;; Cliente LLM (ollama, chatgpt, gemini, etc.)
|
||||
(use-package gptel
|
||||
|
Loading…
Reference in New Issue
Block a user