Support devicons in lsp_references picker #3086
Labels
enhancement
Enhancement to performance, inner workings or existent features
good first issue
Good for newcomers
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
Currently, the file pickers support devicons (with an option
disable_devicons
to disable them), but lsp references picker do not:It'd be nice to have that option for lsp references as well.
Describe alternatives you've considered
I tried using a custom
entry_maker
for the lsp references picker. However, I wanted to only override the display function, but I'm not quite sure how to do this. I thought about reusing the current entry maker used for this picker, but I don't know how to access theopts
from within theentry_maker
function (probably a dumb question).If this is something we can add, I can submit a PR to support devicons and the option to disable them. These are the proposed changes (roughly):
Additional context
I assume in most cases lsp references will all be the same file type (whatever the language you're working on is), however, in the case of Angular, you can have references to a symbol from both typescript and html files. Usually the file names are pretty similar and it can be difficult to differentiate them (see screenshot above).
Another example would be
*.spec.ts
files, which would be easier to identify by the icon rather than scanning down the line to look at the file extension.Thank you!
The text was updated successfully, but these errors were encountered: