From d6f378e03bda70fed2507265517f29bbf05afbd3 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sun, 6 Sep 2015 19:20:05 -0400 Subject: [PATCH] core: add VCS integration for neotree The state of the files will change the face. For instance, green means new file, purple means modified file etc... (not that those colors are with spacemacs-dark theme) --- spacemacs/packages.el | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index fae6ea5c8..f1b103a2b 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -2550,11 +2550,9 @@ It will toggle the overlay under point or create an overlay of one character." neo-dont-be-alone t neo-persist-show nil neo-show-hidden-files t - neo-auto-indent-point t) - - (defun spacemacs//init-neotree () - "Initialize the neotree mode." - ) + neo-auto-indent-point t + neo-modern-sidebar t + neo-vc-integration '(face)) (defun spacemacs/neotree-expand-or-open () "Collapse a neotree node." @@ -2624,8 +2622,7 @@ It will toggle the overlay under point or create an overlay of one character." "pt" 'neotree-find-project-root)) :config - (spacemacs/add-to-hook 'neotree-mode-hook '(spacemacs//init-neotree - spacemacs//neotree-key-bindings)))) + (spacemacs/add-to-hook 'neotree-mode-hook '(spacemacs//neotree-key-bindings)))) (defun spacemacs/init-page-break-lines () (use-package page-break-lines