Add the ability to hide symbol type in results or present symbol type as virtual text that is not searchable #3343
Labels
enhancement
Enhancement to performance, inner workings or existent features
Is your feature request related to a problem? Please describe.
When I lookup the document symbols in a markdown file (using marksman lsp), telescope shows all the headings along with the symbol type which is always String. If I have a markdown file say on the topic of Rust and I have a section titled String, I cannot get to it by looking up the document symbols as
String
matches with the type of all the headings.I tried setting
symbol_type_width=0
, but that defaults to 8 when set to 0.telescope.nvim/lua/telescope/make_entry.lua
Line 519 in 37dc923
Describe the solution you'd like
Option 1: I need a configuration to hide the symbol type based on filetype.
Option 2: Present the symbol type using virtual text which is not searchable using Telescope.
Describe alternatives you've considered
Currently, I duplicated a set of functions from telescope to overcome this. I use a custom document_symbols (that is mostly a copy from Telescope) and uses a custom entry_maker for markdown files and won't display the symbol type. https://github.com/srgsanky/kickstart.nvim/blob/master/lua/custom/plugins/telescope_custom_document_symbols.lua
Additional context
The text was updated successfully, but these errors were encountered: