tools/nav-flash: refactor & reduce false positive jumps
This commit is contained in:
parent
b47ccab4a5
commit
3b94bafb3a
1 changed files with 7 additions and 7 deletions
|
@ -3,18 +3,18 @@
|
||||||
(def-package! nav-flash
|
(def-package! nav-flash
|
||||||
:commands nav-flash-show
|
:commands nav-flash-show
|
||||||
:init
|
:init
|
||||||
;; NOTE In :feature jump `recenter' is hooked to a bunch of jumping commands,
|
;; NOTE In :feature lookup `recenter' is hooked to a bunch of jumping
|
||||||
;; which will trigger nav-flash.
|
;; commands, which will trigger nav-flash.
|
||||||
(add-hook 'doom-after-switch-window-hook #'+nav-flash/blink-cursor)
|
(add-hook!
|
||||||
(advice-add #'recenter :around #'+nav-flash*blink-cursor-maybe)
|
'(doom-after-switch-window-hook
|
||||||
|
imenu-after-jump-hook evil-jumps-post-jump-hook
|
||||||
|
counsel-grep-post-action-hook dumb-jump-after-jump-hook)
|
||||||
|
#'+nav-flash/blink-cursor)
|
||||||
|
|
||||||
(advice-add #'save-place-find-file-hook :after #'+nav-flash/blink-cursor)
|
(advice-add #'save-place-find-file-hook :after #'+nav-flash/blink-cursor)
|
||||||
|
|
||||||
(after! evil
|
(after! evil
|
||||||
(advice-add #'evil--jumps-jump :after #'+nav-flash/blink-cursor)
|
|
||||||
|
|
||||||
(advice-add #'evil-window-top :after #'+nav-flash/blink-cursor)
|
(advice-add #'evil-window-top :after #'+nav-flash/blink-cursor)
|
||||||
(advice-add #'evil-window-middle :after #'+nav-flash/blink-cursor)
|
(advice-add #'evil-window-middle :after #'+nav-flash/blink-cursor)
|
||||||
(advice-add #'evil-window-bottom :after #'+nav-flash/blink-cursor)))
|
(advice-add #'evil-window-bottom :after #'+nav-flash/blink-cursor)))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue