Alexander-Miller / treemacs

GNU General Public License v3.0
2.09k stars 153 forks source link

List functions without signatures #1085

Closed spacekookie closed 5 months ago

spacekookie commented 8 months ago

Hey there,

sorry if this is already implemented or was discussed elsewhere; I had a search around the docs and issue tracker and didn't find anything.

I love being able to get a list of functions and types in a particular type. Unfortunately the list is kinda noisy because after every function name it also includes the function signature.

It would be nice to make this output configurable, or at least just hide the function signature. Is this something treemacs can do? Or does it depend on the output of a language server and so I'd have to configure this elsewhere?

Thanks!

Alexander-Miller commented 8 months ago

Or does it depend on the output of a language server and so I'd have to configure this elsewhere?

Correct. Treemacs is just the frontend with a small bit of pre-processing to shove tags into a tree structure. The source of its data is imenu, which by itself is a generic feature that can provide info from various sources, from language servers and ctags down to the default of dumb regex scanning. If you want to change the look of your tags you'll have to take it up with your imenu implementation.

Btw, by default imenu must be manually told to re-scan your buffer. imenu-auto-rescan controls that behavior.

stale[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).

Alexander-Miller commented 5 months ago

Sounds like the question has been answered, so I'll close up here. Feel free to re-open if you have further questions.