branch: externals/ivy
commit 8b5cb11d5e9ce3e947a1d96855db66f828e7faca
Author: Daanturo <daant...@gmail.com>
Commit: Basil L. Contovounesios <conto...@tcd.ie>

    ivy-configure: add :sort-matches-fn
    
    * ivy.el (ivy-configure): Accept :sort-matches-fn key for setting
    `ivy-sort-matches-functions-alist` (#2860).
---
 ivy.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ivy.el b/ivy.el
index 8fc0e31..256aeaa 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1894,6 +1894,7 @@ The child caller inherits and can override the settings 
of the parent.")
                          unwind-fn
                          index-fn
                          sort-fn
+                         sort-matches-fn
                          format-fn
                          display-fn
                          display-transformer-fn
@@ -1921,6 +1922,8 @@ The child caller inherits and can override the settings 
of the parent.")
     (ivy--alist-set 'ivy-index-functions-alist caller index-fn))
   (when sort-fn
     (ivy--alist-set 'ivy-sort-functions-alist caller sort-fn))
+  (when sort-matches-fn
+    (ivy--alist-set 'ivy-sort-matches-functions-alist caller sort-matches-fn))
   (when format-fn
     (ivy--alist-set 'ivy-format-functions-alist caller format-fn))
   (when display-fn

Reply via email to