mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix ivy completion when treemacs is open
Caused by incorrectly initialized treemacs popup hack.
This commit is contained in:
@ -284,10 +284,12 @@ instead of switch-to-buffer-*."
|
||||
|
||||
;; `treemacs'
|
||||
(after! treemacs
|
||||
(set-popup-rule! "^ \\*Treemacs" :side 'left :size treemacs-width :quit nil)
|
||||
(set-popup-rule! "^ \\*Treemacs" :side 'left :size treemacs-width :quit nil :ttl 0)
|
||||
(defun +popup*set-popup (&rest _)
|
||||
(+popup--init (selected-window)))
|
||||
(advice-add #'treemacs--setup-buffer :after #'+popup*set-popup))
|
||||
"Create and setup a buffer for treemacs in the right position and size."
|
||||
(pop-to-buffer (treemacs--get-framelocal-buffer))
|
||||
(treemacs--forget-last-highlight))
|
||||
(advice-add #'treemacs--setup-buffer :override #'+popup*set-popup))
|
||||
|
||||
|
||||
;; `wgrep'
|
||||
|
Reference in New Issue
Block a user