Fix ivy completion when treemacs is open
Caused by incorrectly initialized treemacs popup hack.
This commit is contained in:
parent
baf400b736
commit
d2ecd87739
1 changed files with 5 additions and 3 deletions
|
@ -284,10 +284,12 @@ instead of switch-to-buffer-*."
|
||||||
|
|
||||||
;; `treemacs'
|
;; `treemacs'
|
||||||
(after! 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 _)
|
(defun +popup*set-popup (&rest _)
|
||||||
(+popup--init (selected-window)))
|
"Create and setup a buffer for treemacs in the right position and size."
|
||||||
(advice-add #'treemacs--setup-buffer :after #'+popup*set-popup))
|
(pop-to-buffer (treemacs--get-framelocal-buffer))
|
||||||
|
(treemacs--forget-last-highlight))
|
||||||
|
(advice-add #'treemacs--setup-buffer :override #'+popup*set-popup))
|
||||||
|
|
||||||
|
|
||||||
;; `wgrep'
|
;; `wgrep'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue