1
0
Fork 0

fix(emacs): reasonable neotree behaviour for magit status buffer

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-02-05 16:02:07 -05:00
parent 81c3106161
commit 02a2ef1a77
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -113,6 +113,7 @@
(let ((current-directory (let ((current-directory
(or (and buffer-file-name (file-name-directory buffer-file-name)) (or (and buffer-file-name (file-name-directory buffer-file-name))
(and (eq major-mode 'dired-mode) (dired-current-directory)) (and (eq major-mode 'dired-mode) (dired-current-directory))
(and (eq major-mode 'magit-status-mode) (magit-toplevel))
"~"))) "~")))
(if (and (fboundp 'neo-global--window-exists-p) (if (and (fboundp 'neo-global--window-exists-p)
(neo-global--window-exists-p)) (neo-global--window-exists-p))