mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tools/neotree: refresh pane when jumping to it
This commit is contained in:
@ -9,13 +9,15 @@
|
||||
(require 'neotree)
|
||||
(cond ((and (neo-global--window-exists-p)
|
||||
(get-buffer-window neo-buffer-name t))
|
||||
(neotree-find path project-root))
|
||||
(neotree-find path project-root)
|
||||
(neotree-refresh))
|
||||
((not (and (neo-global--window-exists-p)
|
||||
(equal (file-truename (neo-global--with-buffer neo-buffer--start-node))
|
||||
(file-truename project-root))))
|
||||
(neotree-dir project-root)
|
||||
(neotree-find path project-root))
|
||||
(t (neotree-find path project-root)))))
|
||||
(t
|
||||
(neotree-find path project-root)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +neotree/collapse-or-up ()
|
||||
|
Reference in New Issue
Block a user