            (and (featurep 'face-remap)
                 (/= text-scale-mode-amount 0)
                 (format " (%+d)" text-scale-mode-amount)))
-   'face (if active 'doom-modeline-major-mode)))
+   'face (if (active) 'doom-modeline-major-mode)))
 
 (defun *vc ()
   "Displays the current branch, colored based on its state."
   (when vc-mode
-    (let ((state   (vc-state buffer-file-name))
+    (let ((backend (vc-backend buffer-file-name))
+          (state   (vc-state buffer-file-name))
           (face    'mode-line-inactive)
+          (active  (active))
           (all-the-icons-scale-factor 1.0)
           (all-the-icons-default-adjust -0.1))
       (concat (propertize " " 'face 'variable-pitch)


(defun doom-make-xpm (color height width)
  "Create an XPM bitmap."
  (propertize
   " " 'display
   (let ((data nil)
         (i 0))
     (setq data (make-list height (make-list width 1)))
     (pl/make-xpm "percent" color color (reverse data)))))
(pl/memoize 'doom-make-xpm)

(defun doom-buffer-path ()
  "Displays the buffer's full path relative to the project root (includes the

     (format " %s/%d%s "
             anzu--current-position anzu--total-matched
             (if anzu--overflow-p "+" ""))
     'face (if (active) 'doom-modeline-panel))))

(defun *evil-substitute ()
  "Show number of :s matches in real time."
