Add treemacs
This commit is contained in:
parent
28aeeaac31
commit
569c361c59
20
init.el
20
init.el
|
@ -89,6 +89,25 @@
|
||||||
:config
|
:config
|
||||||
(add-hook 'prog-mode-hook #'ws-butler-mode))
|
(add-hook 'prog-mode-hook #'ws-butler-mode))
|
||||||
|
|
||||||
|
;; Project
|
||||||
|
(use-package projectile
|
||||||
|
:config
|
||||||
|
(define-key prog-mode-map (kbd "C-c p") 'projectile-command-map)
|
||||||
|
(projectile-mode +1))
|
||||||
|
|
||||||
|
;; File tree (+ related integrations)
|
||||||
|
(use-package treemacs
|
||||||
|
:init
|
||||||
|
(setq treemacs-tag-follow-delay 0.5)
|
||||||
|
:config
|
||||||
|
(treemacs-resize-icons 15)
|
||||||
|
(treemacs-follow-mode +1)
|
||||||
|
(treemacs-tag-follow-mode +1)
|
||||||
|
(treemacs-project-follow-mode +1))
|
||||||
|
(use-package treemacs-evil)
|
||||||
|
(use-package treemacs-projectile)
|
||||||
|
(use-package treemacs-magit)
|
||||||
|
|
||||||
;; Code folding
|
;; Code folding
|
||||||
(use-package ts-fold
|
(use-package ts-fold
|
||||||
:straight (ts-fold :type git :host github :repo "emacs-tree-sitter/ts-fold"))
|
:straight (ts-fold :type git :host github :repo "emacs-tree-sitter/ts-fold"))
|
||||||
|
@ -220,5 +239,6 @@
|
||||||
(define-key lsp-ui-peek-mode-map (kbd "J") #'lsp-ui-peek--select-next-file)
|
(define-key lsp-ui-peek-mode-map (kbd "J") #'lsp-ui-peek--select-next-file)
|
||||||
(define-key lsp-ui-peek-mode-map (kbd "K") #'lsp-ui-peek--select-prev-file)
|
(define-key lsp-ui-peek-mode-map (kbd "K") #'lsp-ui-peek--select-prev-file)
|
||||||
(define-key lsp-ui-peek-mode-map (kbd "o") #'lsp-ui-peek--goto-xref))
|
(define-key lsp-ui-peek-mode-map (kbd "o") #'lsp-ui-peek--goto-xref))
|
||||||
|
(use-package lsp-treemacs)
|
||||||
(setq gc-cons-threshold (* 1024 1024 100))
|
(setq gc-cons-threshold (* 1024 1024 100))
|
||||||
(setq read-process-output-max (* 1024 1024))
|
(setq read-process-output-max (* 1024 1024))
|
||||||
|
|
Loading…
Reference in a new issue