fix ivy not working well with lsp-ivy-workspace-symbol

More details here: emacs-lsp/lsp-ivy#18 (comment)
This commit is contained in:
Mike Chen 2020-08-26 15:09:52 +08:00 committed by GitHub
parent 1c99aed0c0
commit 93795633dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -381,9 +381,11 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
'(literal regexp initialism))) '(literal regexp initialism)))
:config :config
(setq ivy-prescient-sort-commands (setq ivy-prescient-sort-commands
'(:not swiper swiper-isearch ivy-switch-buffer counsel-grep '(:not swiper swiper-isearch ivy-switch-buffer
counsel-git-grep counsel-ag counsel-rg counsel-imenu lsp-ivy-workspace-symbol ivy-resume ivy--restore-session
counsel-yank-pop counsel-recentf counsel-buffer-or-recentf) counsel-grep counsel-git-grep counsel-rg counsel-ag
counsel-ack counsel-fzf counsel-pt counsel-imenu
counsel-yank-pop counsel-recentf counsel-buffer-or-recentf)
ivy-prescient-retain-classic-highlighting t) ivy-prescient-retain-classic-highlighting t)
(defun +ivy-prescient-non-fuzzy (str) (defun +ivy-prescient-non-fuzzy (str)
(let ((prescient-filter-method '(literal regexp))) (let ((prescient-filter-method '(literal regexp)))