Fix #1065: add +ivy-buffer-unreal-face option

This commit is contained in:
Henrik Lissner 2019-04-07 15:54:03 -04:00
parent e60b44d255
commit 00bb00649b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 2 deletions

View file

@ -18,10 +18,10 @@
"Display the buffer name.
Buffers that are considered unreal (see `doom-real-buffer-p') are dimmed with
`font-lock-comment-face'."
`+ivy-buffer-unreal-face'."
(if (doom-real-buffer-p (get-buffer candidate))
candidate
(propertize candidate 'face 'font-lock-comment-face)))
(propertize candidate 'face +ivy-buffer-unreal-face)))
;;;###autoload
(defun +ivy-rich-buffer-icon (candidate)

View file

@ -26,6 +26,9 @@ silently ignored.
If you want to already use git-grep or grep, set this to nil.")
(defvar +ivy-buffer-unreal-face 'font-lock-comment-face
"The face for unreal buffers in `ivy-switch-to-buffer'.")
(defmacro +ivy-do-action! (action)
"Returns an interactive lambda that sets the current ivy action and
immediately runs it on the current candidate (ending the ivy session)."