mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Fix for evil-anzu
.
This commit is contained in:
parent
96d6fda059
commit
55269e7288
1 changed files with 59 additions and 57 deletions
|
@ -204,6 +204,7 @@ If STRICT-P, return nil if no project was found, otherwise return
|
|||
|
||||
;; anzu and evil-anzu expose current/total state that can be displayed in the
|
||||
;; mode-line.
|
||||
(when (feature 'evil-anzu)
|
||||
(setq anzu-cons-mode-line-p nil
|
||||
anzu-minimum-input-length 1
|
||||
anzu-search-threshold 250)
|
||||
|
@ -217,14 +218,15 @@ If STRICT-P, return nil if no project was found, otherwise return
|
|||
(advice-add #'anzu--where-is-here :override #'doom-modeline-fix-anzu-count)
|
||||
|
||||
;; Avoid anzu conflicts across buffers
|
||||
;; (mapc #'make-variable-buffer-local
|
||||
;; '(anzu--total-matched anzu--current-position anzu--state
|
||||
;; anzu--cached-count anzu--cached-positions anzu--last-command
|
||||
;; anzu--last-isearch-string anzu--overflow-p))
|
||||
(mapc #'make-variable-buffer-local
|
||||
'(anzu--total-matched anzu--current-position anzu--state
|
||||
anzu--cached-count anzu--cached-positions anzu--last-command
|
||||
anzu--last-isearch-string anzu--overflow-p))
|
||||
|
||||
;; Ensure anzu state is cleared when searches & iedit are done
|
||||
(add-hook 'isearch-mode-end-hook #'anzu--reset-status t)
|
||||
(add-hook 'iedit-mode-end-hook #'anzu--reset-status)
|
||||
;; (add-hook '+evil-esc-hook #'anzu--reset-status t)
|
||||
(add-hook 'iedit-mode-end-hook #'anzu--reset-status))
|
||||
|
||||
|
||||
;; Keep `doom-modeline-current-window' up-to-date
|
||||
|
|
Loading…
Reference in a new issue