Open emosesPatreon opened 5 years ago
You may use something like https://www.emacswiki.org/emacs/HideLines to hide the stuff that you do not want.
As a side note, I am planning to implement treelike view for the symbols in https://github.com/emacs-lsp/lsp-treemacs
Can I ignore variables inside functions?
I have a similar issue. It would be nice if nodes in this tree view could collapse (similar to how treemacs nodes collapse and expand, bound to TAB
by default I believe), and the initial level of depth that is shown were configurable.
Is this option given by lsp-imenu-index-symbol-kinds
?
Is this option given by
lsp-imenu-index-symbol-kinds
?
Yup, you can use it to customize items in the imenu
.
Personally, I use the following:
(setq lsp-imenu-index-symbol-kinds '(Class Method Function Enum))
@emosesPatreon Should this issue be close considering the last comment is an answer to the issue? Also, thank you @PhilippeNoel1 for the answer, that is exactly what I was looking for!
I'm using MS's python-language-server implementation. This reports back a) all the imports as Modules, and b) within each function, a
(Function)
item that actually represents the function, and all the local variables within the function. That's way too much information to be useful in the imenu popup.What I'd actually like is a list of all the
class
es anddef
s. So I'd like some way to collapse down the(Function)
marker into the name of the function it represents, and also filter out all the noise, either by type or level.