Fix "not in project" projectile error #1037

helm-projectile-find-file doesn't respect
projectile-require-project-root by hard-coding it's no-project error
handling into its helm-projectile-* functions. This means if you try to
use helm-projectile-find-file in a non-project you get this error. So we
use helm-find-files for non-projects instead.
This commit is contained in:
Henrik Lissner 2018-12-05 14:16:42 -05:00
parent 10a732a89a
commit 9d374b3bfb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -13,8 +13,9 @@
(interactive) (interactive)
(call-interactively (call-interactively
(if (or (file-equal-p default-directory "~") (if (or (file-equal-p default-directory "~")
(when-let* ((proot (doom-project-root))) (if-let* ((proot (doom-project-root)))
(file-equal-p proot "~"))) (file-equal-p proot "~")
t))
#'helm-find-files #'helm-find-files
#'helm-projectile-find-file))) #'helm-projectile-find-file)))