Config: add basic magit config

This commit is contained in:
2026-05-10 22:04:30 +08:00
parent fddfe9859d
commit 68c7f8ba0d
6 changed files with 37 additions and 15 deletions

View File

@@ -41,7 +41,8 @@
"g" 'consult-ripgrep
"e" 'consult-flycheck
"l" 'consult-locate
"m" 'consult-fd-global
"h" 'consult-fd-home
"m" 'consult-man
"d" 'my-open-current-directory
"j" 'consult-jinx
"k" 'consult-kmacro
@@ -120,6 +121,14 @@
"C-f" 'dired-find-file
"<SPC>" 'dirvish-layout-toggle)
;; magit
(general-def magit-mode-map
"C-<tab>" 'my-magit-toggle-parent-section
"p" 'magit-section-backward-sibling
"M-p" 'magit-section-backward
"n" 'magit-section-forward-sibling
"M-n" 'magit-section-forward)
;; flycheck
(general-def flycheck-mode-map
"M-{" 'flycheck-previous-error