From c48ded07c7f297051b8701d949170c56842f6b18 Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Mon, 30 Jun 2025 16:54:36 +0200 Subject: [PATCH] clean up ivy loading --- settings/completion-settings.el | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/settings/completion-settings.el b/settings/completion-settings.el index 149c6c85..d37d9b58 100644 --- a/settings/completion-settings.el +++ b/settings/completion-settings.el @@ -54,23 +54,23 @@ ;; (setq search-default-mode #'char-fold-to-regexp) ) +(use-package all-the-icons-ivy-rich + ;; https://github.com/seagle0128/all-the-icons-ivy-rich + :defer + :if (display-graphic-p) + :commands (all-the-icons-ivy-rich-mode)) + (use-package ivy-rich :defer 0.1 :init (require 'ivy-rich-autoloads) :config (setcdr (assq t ivy-format-functions-alist) #'ivy-format-function-line) - (require 'all-the-icons-ivy-rich) ;; as suggested load `all-the-icons-ivy-rich-mode' before `ivy-rich-mode' + ;; For better performance, enable all-the-icons-ivy-rich-mode before ivy-rich-mode. + (when (display-graphic-p) + (all-the-icons-ivy-rich-mode 1)) (ivy-rich-mode 1)) -(use-package all-the-icons-ivy-rich - :defer ;; to be able to load it after `ivy-rich' - :if (display-graphic-p) - :config - ;; defines also nice display-transformers - (all-the-icons-ivy-rich-mode 1)) - (use-package swiper - :commands (swiper) :init (require 'swiper-autoloads)) (use-package counsel @@ -84,6 +84,7 @@ ("C-x C-r" . counsel-buffer-or-recentf) ("C-h f" . counsel-describe-function) ("C-h v" . counsel-describe-variable) + ("C-h o" . counsel-describe-symbol) ("C-h l" . counsel-find-library) ;; (" i" . counsel-info-lookup-symbol) ;; info-lookup-symbol see helpful-symbol (" u" . counsel-unicode-char)