From 26b0a7a071e0a53380e369c5c306e6b6dd017967 Mon Sep 17 00:00:00 2001 From: mtwomey Date: Tue, 9 May 2023 00:03:27 -0500 Subject: [PATCH] Workaround for error in buffer-switcher The issue is with ivy-rich. https://github.com/Yevgnen/ivy-rich/issues/115 --- init.el | 1 + modules/beakstar/mod-ivy/config.el | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index b4cfe90..0a50475 100644 --- a/init.el +++ b/init.el @@ -210,4 +210,5 @@ mod-deft mod-bookmarks ;; set location to ~/.config/doom mod-clojure + mod-ivy ) diff --git a/modules/beakstar/mod-ivy/config.el b/modules/beakstar/mod-ivy/config.el index bbef7db..18bc344 100644 --- a/modules/beakstar/mod-ivy/config.el +++ b/modules/beakstar/mod-ivy/config.el @@ -1,8 +1,8 @@ +;; Patch to fix "Error in post-command-hook (ivy--queue-exhibit)..." +;; From: https://github.com/Yevgnen/ivy-rich/issues/115 +;; This is an issue in ivy-rich, doom hasn't updated yet (after! ivy - ;; Use fuzzy ivy completion, I like this better than having to put a between patterns - - ;; (setq ivy-re-builders-alist '((counsel-rg . ivy--regex-plus) - ;; (swiper . ivy--regex-fuzzy) - ;; (swiper-isearch . ivy--regex-fuzzy) - ;; (t . ivy--regex-fuzzy))) - ) + (defun ivy-rich--switch-buffer-directory! (orig-fun &rest args) + (cl-letf (((symbol-function 'directory-file-name) #'file-name-directory)) + (apply orig-fun args))) + (advice-add 'ivy-rich--switch-buffer-directory :around #'ivy-rich--switch-buffer-directory!))