                     (dumb-jump-go))
                   successful))))
 
-        ((and identifier
-              (featurep 'counsel)
-              (let ((regex (rxt-quote-pcre identifier)))
-                (or (and +lookup--rg-installed-p
-                         (counsel-rg regex (doom-project-root)))
-                    (and +lookup--ag-installed-p
-                         (counsel-ag regex (doom-project-root)))))))
+        ((+lookup--file-search identifier))
 
         ((and (featurep 'evil)
               evil-mode

                ('error (ignore (message "%s" e))))
           return it))

;;;###autoload
(defun +lookup-xref-definitions (identifier)
  "Non-interactive wrapper for `xref-find-definitions'"

  (cond ((and +lookup-references-functions
              (+lookup--jump-to :references identifier)))

        ((+lookup--file-search identifier))

        (t (error "Couldn't find '%s'" identifier))))

