Preserve cursor+window position, rather than recenter

After n/N or */# searches with evil.
This commit is contained in:
Henrik Lissner 2020-03-06 16:36:35 -05:00
parent 7481bfd4d5
commit fb8d96f1cb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 12 additions and 2 deletions

View file

@ -174,7 +174,7 @@ directives. By default, this only recognizes C directives.")
evil-ex-search-previous
evil-ex-search-forward
evil-ex-search-backward))
(advice-add fn :after #'doom-recenter-a))
(advice-add fn :around #'doom-preserve-window-position-a))
;; --- custom interactive codes -----------
;; These arg types will highlight matches in the current buffer