Speed up evil-ex search in magit or long/large buffers

This commit is contained in:
Henrik Lissner 2019-12-20 14:03:45 -05:00
parent 8a080e037c
commit ebf3739cf1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -54,6 +54,11 @@ directives. By default, this only recognizes C directives.")
;; to do highlighting them all.
evil-ex-interactive-search-highlight 'selected-window)
;; Slow this down from 0.02 to prevent blocking in large or folded buffers
;; like magit while incrementally highlighting matches.
(setq-hook! 'magit-mode-hook evil-ex-hl-update-delay 0.2)
(setq-hook! 'so-long-minor-mode-hook evil-ex-hl-update-delay 0.25)
:config
(evil-select-search-module 'evil-search-module 'evil-search)