mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 10:36:12 +01:00
1.2 KiB
1.2 KiB
Magit
(use-package magit
:straight t)
Evil Magit
(use-package evil-magit
:straight t
:after (evil magit)
:config
(setq evil-magit-state 'motion)
(evil-define-key 'motion magit-status-mode-map ";" 'magit-log)
(evil-define-key 'motion magit-status-mode-map "k" 'evil-previous-line)
(evil-define-key 'motion magit-status-mode-map "l" 'evil-next-line)
(evil-define-key 'normal magit-status-mode-map "l" 'evil-next-line)
(evil-define-key 'visual magit-status-mode-map "l" 'evil-next-line)
(evil-define-key 'motion magit-log-mode-map ";" 'magit-log)
(evil-define-key 'motion magit-log-mode-map "k" 'evil-previous-line)
(evil-define-key 'motion magit-log-mode-map "l" 'evil-next-line)
(evil-define-key 'normal magit-log-mode-map "l" 'evil-next-line)
(evil-define-key 'visual magit-log-mode-map "l" 'evil-next-line))
Magit Todos
(use-package magit-todos
:straight t
:hook
(lsp-mode . hl-todo-mode)
(org-mode . hl-todo-mode))