selectrum: fix bugs when counsel is loaded (hack)

some doom functions check the completion module with `fboundp`'s instead
of `featurep!`, and counsel can be loaded by using e.g. `lispy`. we add
temporary fixes for this by checking for selectrum stuff first, but this
should be given a more robust fix later on

also we document the selectrum PR's hacks in the TODO.org

see discussion on #5013
This commit is contained in:
Itai Y. Efrat 2021-05-20 17:45:30 +03:00
parent 23a47acc06
commit 49a5c51615
3 changed files with 14 additions and 2 deletions

View file

@ -128,6 +128,8 @@ If DIR is not a project, it will be indexed (but not cached)."
(if (doom-module-p :completion 'ivy)
#'counsel-projectile-find-file
#'projectile-find-file)))
((fboundp 'selectrum-mode) ;HACK see @ymarco's comment on #5013 and TODO.org in the selecturm module.
(call-interactively #'find-file))
((fboundp 'counsel-file-jump) ; ivy only
(call-interactively #'counsel-file-jump))
((project-current nil dir)