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:
parent
10a732a89a
commit
9d374b3bfb
1 changed files with 3 additions and 2 deletions
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue