Stop recentering/preserving window pos on evil searches

It needs a lot of work to not be so jarring, but I don't have the time
to perfect it, so I'll disable it for now.
This commit is contained in:
Henrik Lissner 2020-03-31 14:38:56 -04:00
parent 86506eaa53
commit ce57eef471
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -165,17 +165,6 @@ directives. By default, this only recognizes C directives.")
(advice-add #'evil-open-above :around #'+evil--insert-newline-above-and-respect-comments-a)
(advice-add #'evil-open-below :around #'+evil--insert-newline-below-and-respect-comments-a)
;; Recenter screen after most searches
(dolist (fn '(evil-visualstar/begin-search-forward
evil-visualstar/begin-search-backward
evil-ex-search-word-forward
evil-ex-search-word-backward
evil-ex-search-next
evil-ex-search-previous
evil-ex-search-forward
evil-ex-search-backward))
(advice-add fn :around #'doom-preserve-window-position-a))
;; --- custom interactive codes -----------
;; These arg types will highlight matches in the current buffer
(evil-ex-define-argument-type regexp-match