branch: externals/ivy-hydra
commit 251c2198b1b35927a5136577fc3f5da7c9a47cda
Author: Troy Hinckley <[email protected]>
Commit: Oleh Krehel <[email protected]>
Enable setting the display function with ivy-configure
Fixes #2511
---
ivy.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ivy.el b/ivy.el
index b1fce46..2a88f45 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2028,6 +2028,7 @@ An :init is a function with no arguments.
index-fn
sort-fn
format-fn
+ display-fn
display-transformer-fn
more-chars
grep-p
@@ -2052,6 +2053,8 @@ An :init is a function with no arguments.
(ivy--alist-set 'ivy-sort-functions-alist caller sort-fn))
(when format-fn
(ivy--alist-set 'ivy-format-functions-alist caller format-fn))
+ (when display-fn
+ (ivy--alist-set 'ivy-display-functions-alist caller display-fn))
(when display-transformer-fn
(ivy-set-display-transformer caller display-transformer-fn))
(when more-chars