diff --git a/doom-modeline.el b/doom-modeline.el index 89e8e07..2404be5 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -374,7 +374,8 @@ If DEFAULT is non-nil, set the default mode-line for all buffers." (setq doom-modeline-project-root (file-local-name (or - (when (featurep 'projectile) (projectile-project-root)) + (when (featurep 'projectile) + (ignore-errors (projectile-project-root))) (when (featurep 'project) (when-let ((project (project-current))) (expand-file-name (car (project-roots project)))))