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:
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
SymbolKind
s.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](https://user-images.githubusercontent.com/9791461/117433060-59348200-af2b-11eb-8bee-9de64157c041.png)