use better keybind for magit-status

This commit is contained in:
Mars 2024-10-05 01:31:57 -04:00
parent 4d0cd9cf58
commit 35a7cab081
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895

View file

@ -163,6 +163,7 @@
:config :config
(evil-mode 1) (evil-mode 1)
(evil-define-key 'normal 'global (kbd "K") #'eldoc-box-help-at-point) (evil-define-key 'normal 'global (kbd "K") #'eldoc-box-help-at-point)
(evil-define-key 'normal 'global (kbd "gg") #'magit-status)
(evil-define-key 'normal 'global (kbd "gp") #'diff-hl-show-hunk) (evil-define-key 'normal 'global (kbd "gp") #'diff-hl-show-hunk)
(evil-define-key 'normal 'global (kbd "gr") #'diff-hl-revert-hunk) (evil-define-key 'normal 'global (kbd "gr") #'diff-hl-revert-hunk)
(evil-define-key 'normal 'global (kbd "gs") #'diff-hl-stage-current-hunk)) (evil-define-key 'normal 'global (kbd "gs") #'diff-hl-stage-current-hunk))
@ -349,8 +350,7 @@
magit-completing-read-function 'magit-ivy-completing-read magit-completing-read-function 'magit-ivy-completing-read
magit-default-tracking-name-function 'magit-default-tracking-name-branch-only magit-default-tracking-name-function 'magit-default-tracking-name-branch-only
magit-push-always-verify nil magit-push-always-verify nil
magit-restore-window-configuration t) magit-restore-window-configuration t))
:bind ("C-x g" . magit-status))
(use-package diff-hl (use-package diff-hl
:ensure t :ensure t