search: nnoremap n nzz etc

This commit is contained in:
MitchMarq42 2023-03-13 14:47:06 -08:00
parent 6325b44ecd
commit a3a9584d25

View File

@ -28,7 +28,11 @@ Made solely to reduce lines in the init-file."
(interactive)
(evil-next-line)
(scroll-up-line))
)
;; Search showing
(defun mitch/search-and-rebalance (&optional &rest flush)
(evil-scroll-line-to-center (car flush)))
(advice-add 'evil-search-next :filter-return #'mitch/search-and-rebalance)
(add-hook 'isearch-mode-end-hook #'mitch/search-and-rebalance))
(defun mitch/visual-setup ()
"Commands to run when setting up any display. To be called in use-package
declarations for color schemes."