tools/magit: fix ivy's sorting with magit #1131

By default, magit-completing-read-function is set to
magit-builtin-completing-read, which already includes ivy support.
This commit is contained in:
Henrik Lissner 2019-01-23 14:41:44 -05:00
parent 36a97b28aa
commit fa5bebc13a
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -19,11 +19,7 @@ what features are available.")
:init
(setq magit-auto-revert-mode nil) ; we already use `global-auto-revert-mode'
:config
(setq magit-completing-read-function
(if (featurep! :completion ivy)
#'ivy-completing-read
#'magit-builtin-completing-read)
magit-revision-show-gravatars '("^Author: " . "^Commit: ")
(setq magit-revision-show-gravatars '("^Author: " . "^Commit: ")
magit-diff-refine-hunk t ; show word-granularity on selected hunk
magit-display-buffer-function #'+magit-display-buffer
magit-popup-display-buffer-action '((+magit-display-popup-buffer)))