emacs-lsp / lsp-treemacs

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

60 character limitation in function definition strings causing confusing truncation #2

Closed jclosure closed 5 years ago

jclosure commented 5 years ago

Is it currently possible to set the max width of fn def strings? When I expand, fn defs using lsp-treemacs, they are limited to a max of 60 characters. This leads to confusion and cripples the ability to discern full signatures or distinguish between long function names that overrun the limit.

I notice that both lsp-treemacs and lsp-ui-imenu both have this 60 char limitation. Is this a configurable var? Do you know how to set this?

Thanks

jclosure commented 5 years ago

Ok nevermind, looks like the setting comes in from imenu. This also affects it in lsp-treemacs:

(setq imenu-max-item-length 120)