Skip to content

Commit

Permalink
Workaround for error in buffer-switcher
Browse files Browse the repository at this point in the history
The issue is with ivy-rich.
Yevgnen/ivy-rich#115
  • Loading branch information
mtwomey committed May 9, 2023
1 parent e0cc58f commit 26b0a7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,5 @@
mod-deft
mod-bookmarks ;; set location to ~/.config/doom
mod-clojure
mod-ivy
)
14 changes: 7 additions & 7 deletions modules/beakstar/mod-ivy/config.el
Original file line number Diff line number Diff line change
@@ -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 <space> 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!))

0 comments on commit 26b0a7a

Please sign in to comment.