mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
neotree: don't spawn two windows in another project's file
This commit is contained in:
@ -10,8 +10,10 @@
|
|||||||
(eq (current-buffer) neo-global--buffer))))
|
(eq (current-buffer) neo-global--buffer))))
|
||||||
(if in-neotree
|
(if in-neotree
|
||||||
(neotree-hide)
|
(neotree-hide)
|
||||||
(unless (neo-global--window-exists-p)
|
(let ((project-root (narf/project-root)))
|
||||||
(neotree-dir (narf/project-root)))
|
(unless (and (neo-global--window-exists-p)
|
||||||
|
(f-same? (neo-global--with-window neo-buffer--start-node) project-root))
|
||||||
|
(neotree-dir project-root)))
|
||||||
(neotree-find))))
|
(neotree-find))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
Reference in New Issue
Block a user