       (projectile-project-root (file-name-directory filename)))))
 
 
-(defun snails-backend-projectile--files ()
+(defun snails-backend-projectile-candidates ()
   "List project files."
-  (let ((project-root (snails-backend-projectile--project-root)))
-    (when project-root
-      (projectile-project-files project-root))))
+  (when (featurep 'projectile)
+    (let ((project-root (snails-backend-projectile--project-root)))
+      (when project-root
+        (projectile-project-files project-root)))))
 
 
 (snails-create-sync-backend


;;; Requires
(require 'snails-core)
(require 'projectile)

;;; Code:



 :candidate-filter
 (lambda (input)
   (let ((candidates)
         (project-files (snails-backend-projectile-candidates)))
     (when project-files
       (dolist (file project-files)
         (when (or
