clean up ivy loading
This commit is contained in:
@@ -54,23 +54,23 @@
|
|||||||
;; (setq search-default-mode #'char-fold-to-regexp)
|
;; (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
|
(use-package ivy-rich
|
||||||
:defer 0.1
|
:defer 0.1
|
||||||
:init (require 'ivy-rich-autoloads)
|
:init (require 'ivy-rich-autoloads)
|
||||||
:config
|
:config
|
||||||
(setcdr (assq t ivy-format-functions-alist) #'ivy-format-function-line)
|
(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))
|
(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
|
(use-package swiper
|
||||||
:commands (swiper)
|
|
||||||
:init (require 'swiper-autoloads))
|
:init (require 'swiper-autoloads))
|
||||||
|
|
||||||
(use-package counsel
|
(use-package counsel
|
||||||
@@ -84,6 +84,7 @@
|
|||||||
("C-x C-r" . counsel-buffer-or-recentf)
|
("C-x C-r" . counsel-buffer-or-recentf)
|
||||||
("C-h f" . counsel-describe-function)
|
("C-h f" . counsel-describe-function)
|
||||||
("C-h v" . counsel-describe-variable)
|
("C-h v" . counsel-describe-variable)
|
||||||
|
("C-h o" . counsel-describe-symbol)
|
||||||
("C-h l" . counsel-find-library)
|
("C-h l" . counsel-find-library)
|
||||||
;; ("<f2> i" . counsel-info-lookup-symbol) ;; info-lookup-symbol see helpful-symbol
|
;; ("<f2> i" . counsel-info-lookup-symbol) ;; info-lookup-symbol see helpful-symbol
|
||||||
("<f2> u" . counsel-unicode-char)
|
("<f2> u" . counsel-unicode-char)
|
||||||
|
|||||||
Reference in New Issue
Block a user