diff-hl: fix name incompatible (#758)
* fix name incompatible * add S to stage current hunk
This commit is contained in:
parent
499415799e
commit
877cc09563
|
@ -42,7 +42,7 @@
|
||||||
;;; Code:
|
;;; Code:
|
||||||
(require 'evil-collection)
|
(require 'evil-collection)
|
||||||
|
|
||||||
(defconst evil-collection-diff-hl-maps '(diff-hl-show-hunk--inline-popup-map
|
(defconst evil-collection-diff-hl-maps '(diff-hl-show-hunk-map
|
||||||
diff-hl-inline-popup-transient-mode-map))
|
diff-hl-inline-popup-transient-mode-map))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
@ -63,12 +63,13 @@
|
||||||
|
|
||||||
;; Actually `diff-hl-inline-popup-transient-mode-map' will inherit it by
|
;; Actually `diff-hl-inline-popup-transient-mode-map' will inherit it by
|
||||||
;; `set-keymap-parent'.
|
;; `set-keymap-parent'.
|
||||||
(evil-collection-define-key 'normal 'diff-hl-show-hunk--inline-popup-map
|
(evil-collection-define-key 'normal 'diff-hl-show-hunk-map
|
||||||
;; Keep it the same as the overlay shows.
|
;; Keep it the same as the overlay shows.
|
||||||
"p" 'diff-hl-show-hunk-previous
|
"p" 'diff-hl-show-hunk-previous
|
||||||
"n" 'diff-hl-show-hunk-next
|
"n" 'diff-hl-show-hunk-next
|
||||||
"c" 'diff-hl-show-hunk-copy-original-text
|
"c" 'diff-hl-show-hunk-copy-original-text
|
||||||
"r" 'diff-hl-show-hunk-revert-hunk))
|
"r" 'diff-hl-show-hunk-revert-hunk
|
||||||
|
"S" 'diff-hl-show-hunk-stage-hunk))
|
||||||
|
|
||||||
(provide 'evil-collection-diff-hl)
|
(provide 'evil-collection-diff-hl)
|
||||||
;;; evil-collection-diff-hl.el ends here
|
;;; evil-collection-diff-hl.el ends here
|
||||||
|
|
Loading…
Reference in New Issue