mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -13,8 +13,9 @@
|
||||
(interactive)
|
||||
(call-interactively
|
||||
(if (or (file-equal-p default-directory "~")
|
||||
(when-let* ((proot (doom-project-root)))
|
||||
(file-equal-p proot "~")))
|
||||
(if-let* ((proot (doom-project-root)))
|
||||
(file-equal-p proot "~")
|
||||
t))
|
||||
#'helm-find-files
|
||||
#'helm-projectile-find-file)))
|
||||
|
||||
|
Reference in New Issue
Block a user