fix(treemacs): do not overwrite git mode when treemacs-python-executable is set

This commit is contained in:
Kiana Sheibani 2023-10-15 00:22:24 -04:00 committed by Henrik Lissner
parent 13fa55da82
commit c3b228fedd

View file

@ -33,6 +33,7 @@ This must be set before `treemacs' has loaded.")
(when +treemacs-git-mode
;; If they aren't supported, fall back to simpler methods
(when (and (memq +treemacs-git-mode '(deferred extended))
(not treemacs-python-executable)
(not (executable-find "python3")))
(setq +treemacs-git-mode 'simple))
(treemacs-git-mode +treemacs-git-mode)