Fix #4766: workaround for ivy-prescient wrong-type-arg error

ivy-resume + prefix arg = resume named session, but throws an error when
ivy-prescient is present.
This commit is contained in:
Henrik Lissner 2021-03-10 10:46:38 -05:00
parent 7870350f84
commit 62df2c386a

View file

@ -382,6 +382,8 @@ results buffer.")
'(literal regexp initialism fuzzy) '(literal regexp initialism fuzzy)
'(literal regexp initialism))) '(literal regexp initialism)))
:config :config
;; REVIEW Remove when raxod502/prescient.el#102 is resolved
(add-to-list 'ivy-sort-functions-alist '(ivy-resume))
(setq ivy-prescient-sort-commands (setq ivy-prescient-sort-commands
'(:not swiper swiper-isearch ivy-switch-buffer '(:not swiper swiper-isearch ivy-switch-buffer
lsp-ivy-workspace-symbol ivy-resume ivy--restore-session lsp-ivy-workspace-symbol ivy-resume ivy--restore-session