          ('replace (format " %d/%d " here total))
          (_ (format " %s/%d%s " here total (if anzu--overflow-p "+" "")))))
      'face (if (active) 'doom-modeline-panel))))
-;; Ensure anzu state is cleared when searches are aborted
-(advice-add 'evil-ex-search-abort :after 'anzu--reset-mode-line)
-
-(defvar evil-mode nil)
+
 (defsubst +doom-modeline--evil-substitute ()
   "Show number of :s matches in real time."
   (when (and evil-mode


(defvar +doom-modeline-vspc
  (propertize " " 'face 'variable-pitch)
  "docstring")


;;

  (setq anzu-cons-mode-line-p nil
        anzu-minimum-input-length 1
        anzu-search-threshold 250)
  ;; Ensure anzu state is cleared when searches & iedit are done
  (after! evil
    (advice-add 'evil-force-normal-state :after 'anzu--reset-mode-line)
    (advice-add 'evil-ex-search-abort :after 'anzu--reset-mode-line)
    (after! evil-multiedit
      (add-hook 'iedit-mode-end-hook 'anzu--reset-mode-line))))


;;; Flash the mode-line on error
