Update modules/completion/ivy

This commit is contained in:
Henrik Lissner 2017-02-19 18:41:37 -05:00
parent 2b027c0052
commit 5c13f2eced
4 changed files with 59 additions and 46 deletions

View file

@ -49,10 +49,12 @@
"C-b" 'backward-word
"C-f" 'forward-word)
;; Occasionally, when ivy closes, it causes display artifacting between
;; horizontal splits. This fixes it, though may cause flickering on some OSes.
(defun doom|redisplay (&rest _) (redisplay))
;; Occasionally, when ivy closes, it causes display artifacting
;; between horizontal splits. This fixes it, though may cause
;; flickering on some OSes.
(defun doom|redisplay (&rest _) (force-mode-line-update))
(advice-add 'ivy-read :after 'doom|redisplay)
(add-hook 'projectile-find-file-hook 'doom|redisplay)
(@after magit (setq magit-completing-read-function 'ivy-completing-read))
(@after yasnippet (push '+ivy-yas-prompt yas-prompt-functions))
@ -95,3 +97,11 @@
"C-SPC" 'counsel-git-grep-recenter ; preview
"M-RET" '+ivy/counsel-ag-open-in-other-window))
;; Used by `counsel-M-x'
(@def-package smex
:commands (smex smex-major-mode-commands)
:config
(setq smex-save-file (concat doom-cache-dir "/smex-items"))
(smex-initialize))