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:
parent
e4ca0d9ff1
commit
08335fba6a
2 changed files with 4 additions and 36 deletions
|
|
@ -126,7 +126,7 @@
|
|||
"pd" 'counsel-projectile-find-dir
|
||||
"pp" 'counsel-projectile-switch-project
|
||||
"pf" 'counsel-projectile-find-file
|
||||
"pt" 'spacemacs/treemacs-project-toggle
|
||||
"pt" 'neotree-projectile-action
|
||||
"ps" 'projectile-run-vterm
|
||||
;; Toggles
|
||||
"t" '(:ignore t :which-key "Toggles")
|
||||
|
|
|
|||
|
|
@ -6,39 +6,7 @@
|
|||
;; licence that can be found in the LICENCE file or at
|
||||
;; https://www.practically.io/copyright/
|
||||
|
||||
(defun spacemacs/treemacs-project-toggle ()
|
||||
"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
|
||||
(use-package neotree
|
||||
:config
|
||||
;; Force magit status to go full screen
|
||||
(setq-default git-magit-status-fullscreen 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))))
|
||||
(setq neo-theme 'icons)
|
||||
(setq neo-show-hidden-files t))
|
||||
|
|
|
|||
Loading…
Reference in a new issue