emacs-lsp / lsp-treemacs

lsp-mode :heart: treemacs
GNU General Public License v3.0
396 stars 46 forks source link

Suggestion: make it possible to filter some items from the lsp-treemacs-symbol list #108

Closed jasagredo closed 11 months ago

jasagredo commented 3 years ago

I use LSP with Haskell Language Server, and the request for workspace/symbols returns also the imports under kind 2 as defined in the LSP standard.

As these imports can be numerous, it gets complex having the lsp-treemacs-symbols panel open all the time as I use to have it under treemacs itself, and it is super verbose and you have to go to that panel and scroll until getting to the actual interesting symbols.

I don't think it would be right to remove the imports directly as they are part of the standard, but I think that it would be nice if a variable could be set that filters out specific SymbolKinds.

In this specific use case, I would like to filter out returned values of SymbolKind == 2.

With some guidance I can try to implement this, although I'm not an expert elisper.

EDIT: a screenshot of how it looks like on my machine: image

jasagredo commented 11 months ago

Close as stale