From d2092ae44efa5f7d1468eb3e46e4bd981b25122b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 17 Nov 2019 17:56:25 -0500 Subject: [PATCH] completion/ivy: load counsel earlier Fixes an issue where counsel was being loaded later than ivy-prescient, which requires that it be loaded earlier. --- modules/completion/ivy/config.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index d6ab7e367..4cb329f78 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -59,6 +59,11 @@ results buffer.") [remap persp-switch-to-buffer] #'+ivy/switch-workspace-buffer [remap evil-show-jumps] #'+ivy/jump-list) :config + ;; 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. + (require 'counsel nil t) + (setq ivy-height 17 ivy-wrap t ivy-fixed-height-minibuffer t @@ -172,7 +177,7 @@ evil-ex-specific constructs, so we disable it solely in evil-ex." (use-package! counsel - :commands counsel-describe-face + :defer t :init (define-key! [remap apropos] #'counsel-apropos