emacs: add lsp-ui and lsp-treemacs
authorRalph Boehme <slow@samba.org>
Tue, 7 Sep 2021 05:55:09 +0000 (07:55 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 7 Sep 2021 05:55:09 +0000 (07:55 +0200)
emacs/.emacs.d/configuration.org

index c7542681539fdce4f193d4b6d84458789c7b0b3a..18b308430eac5192fa0d11c63fa318a3db3bdb69 100644 (file)
@@ -265,6 +265,46 @@ https://emacs-lsp.github.io/lsp-mode/page/installation/
   (add-hook 'c-mode-hook #'lsp)
 #+END_SRC
 
+** lsp-ui
+
+[[https://emacs-lsp.github.io/lsp-ui/][lsp-ui]] is a set of UI enhancements built on top of =lsp-mode= which
+make Emacs feel even more like an IDE.  Check out the screenshots on
+the =lsp-ui= homepage (linked at the beginning of this paragraph) to
+see examples of what it can do.
+
+#+begin_src emacs-lisp
+
+  (use-package lsp-ui
+    :hook (lsp-mode . lsp-ui-mode)
+    :custom
+    (lsp-ui-doc-position 'bottom))
+
+#+end_src
+
+** lsp-treemacs
+
+[[https://github.com/emacs-lsp/lsp-treemacs][lsp-treemacs]] provides nice tree views for different aspects of your
+code like symbols in a file, references of a symbol, or diagnostic
+messages (errors and warnings) that are found in your code.
+
+Try these commands with =M-x=:
+
+- =lsp-treemacs-symbols= - Show a tree view of the symbols in the current file
+- =lsp-treemacs-references= - Show a tree view for the references of the symbol under the cursor
+- =lsp-treemacs-error-list= - Show a tree view for the diagnostic messages in the project
+
+This package is built on the [[https://github.com/Alexander-Miller/treemacs][treemacs]] package which might be of some
+interest to you if you like to have a file browser at the left side of
+your screen in your editor.
+
+#+begin_src emacs-lisp
+
+  (use-package lsp-treemacs
+    :after lsp)
+
+#+end_src
+
+
 ** xcsope
 
    #+begin_src elisp