mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-11 13:07:28 -05:00
Merge pull request #4434 from AloisJanicek/better-ivy-hydras-usability
Better ivy hydras usability
This commit is contained in:
@ -59,6 +59,7 @@ results buffer.")
|
|||||||
(setq ivy-height 17
|
(setq ivy-height 17
|
||||||
ivy-wrap t
|
ivy-wrap t
|
||||||
ivy-fixed-height-minibuffer t
|
ivy-fixed-height-minibuffer t
|
||||||
|
ivy-read-action-function #'ivy-hydra-read-action
|
||||||
ivy-read-action-format-function #'ivy-read-action-format-columns
|
ivy-read-action-format-function #'ivy-read-action-format-columns
|
||||||
projectile-completion-system 'ivy
|
projectile-completion-system 'ivy
|
||||||
;; don't show recent files in switch-buffer
|
;; don't show recent files in switch-buffer
|
||||||
@ -95,6 +96,12 @@ results buffer.")
|
|||||||
(after! yasnippet
|
(after! yasnippet
|
||||||
(add-hook 'yas-prompt-functions #'+ivy-yas-prompt-fn))
|
(add-hook 'yas-prompt-functions #'+ivy-yas-prompt-fn))
|
||||||
|
|
||||||
|
(after! ivy-hydra
|
||||||
|
;; Ensure `ivy-dispatching-done' and `hydra-ivy/body' hydras can be
|
||||||
|
;; exited / toggled by the same key binding they were opened
|
||||||
|
(add-to-list 'ivy-dispatching-done-hydra-exit-keys '("C-o" nil))
|
||||||
|
(defhydra+ hydra-ivy () ("M-o" nil)))
|
||||||
|
|
||||||
(define-key! ivy-minibuffer-map
|
(define-key! ivy-minibuffer-map
|
||||||
[remap doom/delete-backward-word] #'ivy-backward-kill-word
|
[remap doom/delete-backward-word] #'ivy-backward-kill-word
|
||||||
"C-c C-e" #'+ivy/woccur
|
"C-c C-e" #'+ivy/woccur
|
||||||
|
Reference in New Issue
Block a user