refactor(emacs): replace treemacs with neotree

Neotree has a much smaller foot print for me. This removes a lot of packages
that were not getting uses to intergate it with the lsp and projectile.
This commit is contained in:
Ade Attwood 2021-11-21 16:49:47 +00:00
parent e4ca0d9ff1
commit 08335fba6a
2 changed files with 4 additions and 36 deletions

View file

@ -126,7 +126,7 @@
"pd" 'counsel-projectile-find-dir "pd" 'counsel-projectile-find-dir
"pp" 'counsel-projectile-switch-project "pp" 'counsel-projectile-switch-project
"pf" 'counsel-projectile-find-file "pf" 'counsel-projectile-find-file
"pt" 'spacemacs/treemacs-project-toggle "pt" 'neotree-projectile-action
"ps" 'projectile-run-vterm "ps" 'projectile-run-vterm
;; Toggles ;; Toggles
"t" '(:ignore t :which-key "Toggles") "t" '(:ignore t :which-key "Toggles")

View file

@ -6,39 +6,7 @@
;; licence that can be found in the LICENCE file or at ;; licence that can be found in the LICENCE file or at
;; https://www.practically.io/copyright/ ;; https://www.practically.io/copyright/
(defun spacemacs/treemacs-project-toggle () (use-package neotree
"Toggle and add the current project to treemacs if not already added."
(interactive)
(if (eq (treemacs-current-visibility) 'visible)
(delete-window (treemacs-get-local-window))
(let ((path (projectile-ensure-project (projectile-project-root)))
(name (projectile-project-name)))
(unless (treemacs-current-workspace)
(treemacs--find-workspace))
(treemacs-do-add-project-to-workspace path name)
(treemacs-select-window))))
(use-package treemacs
:ensure t
:defer t
:init
(with-eval-after-load 'winum
(define-key winum-keymap (kbd "M-0") #'treemacs-select-window)))
(use-package treemacs-magit
:after treemacs magit
:ensure t
:config :config
;; Force magit status to go full screen (setq neo-theme 'icons)
(setq-default git-magit-status-fullscreen t)) (setq neo-show-hidden-files t))
(use-package treemacs-evil
:after treemacs evil
:ensure t)
(use-package treemacs-projectile
:after treemacs projectile
:ensure t)
(use-package treemacs-all-the-icons
:hook (treemacs-mode . (lambda () (treemacs-load-theme 'all-the-icons))))