diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index 2536a35e0..aa9620f2c 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -46,6 +46,11 @@ results buffer.") [remap persp-switch-to-buffer] #'+ivy/switch-workspace-buffer [remap evil-show-jumps] #'+ivy/jump-list) :config + ;; The default sorter is much to slow and the default for `ivy-sort-max-size' + ;; is way too big (30,000). Turn it down so big repos affect project + ;; navigation less. + (setq ivy-sort-max-size 7500) + ;; Counsel changes a lot of ivy's state at startup; to control for that, we ;; need to load it as early as possible. Some packages (like `ivy-prescient') ;; require this.