ui/treemacs: add +lsp flag

This commit is contained in:
Eric Dallo 2021-04-04 23:16:37 -03:00
parent 51864a731e
commit 53bd779cc9
No known key found for this signature in database
GPG key ID: 54B592E05C6FBE46
7 changed files with 69 additions and 2 deletions

View file

@ -0,0 +1,43 @@
#+TITLE: ui/treemacs
#+DATE: April 5, 2021
#+SINCE: v2.0.4
#+STARTUP: inlineimages nofold
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#configuration][Configuration]]
- [[#troubleshooting][Troubleshooting]]
* Description
[[https://github.com/Alexander-Miller/treemacs][Treemacs]] is a file and project explorer similar to NeoTree or vims NerdTree, but largely inspired by the Project Explorer in Eclipse. It shows the file system outlines of your projects in a simple tree layout allowing quick navigation and exploration, while also possessing basic file management utilities.
** Maintainers
+ This module has no dedicated maintainers.
** Module Flags
+ =+lsp= Enable ~lsp-treemacs~ integration and add shortcuts for common commands.
** Plugins
+ [[https://github.com/Alexander-Miller/treemacs][treemacs]]
+ [[https://github.com/Alexander-Miller/treemacs/blob/master/src/extra/treemacs-evil.el][treemacs-evil]]
+ [[https://github.com/Alexander-Miller/treemacs/blob/master/src/extra/treemacs-projectile.el][treemacs-projectile]]
+ [[https://github.com/Alexander-Miller/treemacs/blob/master/src/extra/treemacs-magit.el][treemacs-magit]]
+ [[https://github.com/Alexander-Miller/treemacs/blob/master/src/extra/treemacs-persp.el][treemacs-persp]]
+ [[https://github.com/emacs-lsp/lsp-treemacs][lsp-treemacs]]
* Prerequisites
This module has no prerequisites.
* Features
# TODO
* Configuration
# TODO
* Troubleshooting
# TODO

View file

@ -76,3 +76,7 @@ This must be set before `treemacs' has loaded.")
:when (featurep! :ui workspaces)
:after treemacs
:config (treemacs-set-scope-type 'Perspectives))
(use-package! lsp-treemacs
:when (featurep! +lsp)
:after (treemacs lsp))

View file

@ -0,0 +1,5 @@
;;; ui/treemacs/doctor.el -*- lexical-binding: t; -*-
(assert! (and (not (featurep! :tools lsp +eglot))
(featurep! +lsp))
"+lsp flag is not supported with eglot, only with lsp-mode.")

View file

@ -10,3 +10,5 @@
(package! treemacs-magit))
(when (featurep! :ui workspaces)
(package! treemacs-persp))
(when (featurep! +lsp)
(package! lsp-treemacs :pin "4cfb46d7fe69cc537a8a86389c5d8d9fd3fbfabe"))