From 60c965ded8f1f46eb5c7a82cdbc84fc0d1a49fb0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 14 Mar 2019 00:31:59 -0400 Subject: [PATCH] Revert restored revert of ee6e4a8b Holy reverts Batman. --- modules/completion/ivy/config.el | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index e3389b867..e07c7db23 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -93,17 +93,7 @@ immediately runs it on the current candidate (ending the ivy session)." (colplist (plist-get plist :columns)) (switch-buffer-alist (assq 'ivy-rich-candidate colplist))) (when switch-buffer-alist - (setcar switch-buffer-alist '+ivy-rich-buffer-name))) - - (defun +ivy*rich-counsel-function-docstring (candidate) - (let ((doc (replace-regexp-in-string - ":\\(\\(before\\|after\\)\\(-\\(whilte\\|until\\)\\)?\\|around\\|override\\|\\(filter-\\(args\\|return\\)\\)\\) advice:[ ]*‘.+?’[\r\n]+" - "" - (or (ignore-errors (documentation (intern-soft candidate))) "")))) - (if (string-match "^\\(.+\\)\\([\r\n]\\)?" doc) - (setq doc (match-string 1 doc)) - ""))) - (advice-add #'ivy-rich-counsel-function-docstring :override #'+ivy*rich-counsel-function-docstring)) + (setcar switch-buffer-alist '+ivy-rich-buffer-name)))) (def-package! counsel