mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
completion/ivy: recenter after following imenu links
This commit is contained in:
@ -90,7 +90,9 @@
|
|||||||
(when (eq major-mode 'ivy-occur-grep-mode)
|
(when (eq major-mode 'ivy-occur-grep-mode)
|
||||||
(ivy-wgrep-change-to-wgrep-mode)))
|
(ivy-wgrep-change-to-wgrep-mode)))
|
||||||
|
|
||||||
|
(defun +ivy*recenter (&rest _) (recenter))
|
||||||
(advice-add 'counsel-ag-function :override '+ivy*counsel-ag-function)
|
(advice-add 'counsel-ag-function :override '+ivy*counsel-ag-function)
|
||||||
|
(advice-add 'imenu :after '+ivy*recenter)
|
||||||
(@map :map counsel-ag-map
|
(@map :map counsel-ag-map
|
||||||
[backtab] '+ivy/counsel-ag-occur ; search/replace on results
|
[backtab] '+ivy/counsel-ag-occur ; search/replace on results
|
||||||
"C-SPC" 'counsel-git-grep-recenter ; preview
|
"C-SPC" 'counsel-git-grep-recenter ; preview
|
||||||
|
Reference in New Issue
Block a user