folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.12k stars 172 forks source link

feature: disable icons #421

Closed chrisands closed 1 month ago

chrisands commented 2 months ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

Ability to disable icons since v2 allowed to do it

Describe the solution you'd like

For example set in config empty dictionary

icons = {}

Describe alternatives you've considered

-

Additional context

v2 allows to disable icons using icons = false

folke commented 1 month ago

icons will only be enabled when you have the nvim-web-devicons plugin installed.

If you want to disable them even with the plugin installed, do something like:

require('trouble.format').formatters.file_icon = function() return "" end