|
15 | 15 | - [[#lsp-treemacs-deps-list][lsp-treemacs-deps-list]]
|
16 | 16 | - [[#commands-1][Commands]]
|
17 | 17 | - [[#screenshot-4][Screenshot]]
|
18 |
| - - [[#lsp-metals-treeview][lsp-metals-treeview]] |
19 |
| - - [[#commands-2][Commands]] |
20 |
| - - [[#screenshot-5][Screenshot]] |
21 | 18 |
|
22 | 19 | * Summary
|
23 | 20 | Integration between [[https://github.com/emacs-lsp/lsp-mode][lsp-mode]] and [[https://github.com/Alexander-Miller/treemacs][treemacs]] and implementation of treeview controls using [[https://github.com/Alexander-Miller/treemacs][treemacs]] as a tree renderer.
|
|
55 | 52 | - ~lsp-treemacs-java-deps-refresh~ - refresh the view. Bound to ~r~.
|
56 | 53 | *** Screenshot
|
57 | 54 | [[file:screenshots/dependencies.gif]]
|
58 |
| -** lsp-metals-treeview |
59 |
| -Support for Scala Metals treeview. The treeview is disabled by default in order |
60 |
| -to enable the treeview use one of the following configuration approaches. |
61 |
| -If you are using use-package: |
62 |
| -#+BEGIN_SRC elisp |
63 |
| - |
64 |
| -(use-package lsp-treemacs |
65 |
| - :config |
66 |
| - (lsp-metals-treeview-enable t) |
67 |
| - (setq lsp-metals-treeview-show-when-views-received t)) |
68 |
| - |
69 |
| -#+END_SRC |
70 |
| - |
71 |
| -lsp-metals-treeview-show-when-views-received when true will automatically |
72 |
| -display the treeview when Metals has initialised the project and sent the |
73 |
| -initial top level treeview information. If you wish to keep the tree hidden and |
74 |
| -show it explicitly via a command or a bound key leave the variable false |
75 |
| -(default) and show the treeview using M-x lsp-metals-treeview. |
76 |
| - |
77 |
| -Alternatively if you're not using use-package: |
78 |
| - |
79 |
| -#+BEGIN_SRC elisp |
80 |
| - |
81 |
| -(require 'lsp-metals-treeview) |
82 |
| -(lsp-metals-treeview-enable t) |
83 |
| -(setq lsp-metals-treeview-show-when-views-received t) |
84 |
| - |
85 |
| -#+END_SRC |
86 |
| - |
87 |
| -The metals can be displayed at anytime by using M-x lsp-metals-treeview. |
88 |
| - |
89 |
| -To enable logging of metals treeview actions/responses use the variable |
90 |
| -lsp-metals-treeview-logging (boolean). All messages will be logged to the lsp |
91 |
| -logging buffer. |
92 |
| - |
93 |
| -*** Commands |
94 |
| -q - when the treeview has focus it can be hidden using the q key. To show the |
95 |
| -tree use M-x lsp-metals-treeview or bind this function to a key. |
96 |
| - |
97 |
| -lsp-shutdown-workspace will automatically close the treeview associated with the |
98 |
| -current file buffer. |
99 |
| - |
100 |
| -When switching files the treeview will switch to the treeview associated with |
101 |
| -the new workspace. |
102 |
| - |
103 |
| -*** Screenshot |
104 |
| -[[file:screenshots/metals-treeview.gif]] |
0 commit comments