Bekaboo / dropbar.nvim

IDE-like breadcrumbs, out of the box
GNU General Public License v3.0
1.05k stars 24 forks source link

Add mini.icons support #186

Closed mathjiajia closed 3 weeks ago

mathjiajia commented 1 month ago

Still, it will be good to support mini.icons. The default is nvim-web-devicons.

Bekaboo commented 1 month ago

Thanks for your PR! However I plan to add a more generic way to allow users to define their own icon provider, not just mini.icons or nvim-web-devicons. Ideally, the provider is a user-defined callback with parameters path and ft and returns an icon and an icon_hl.

Bekaboo commented 3 weeks ago

@mathjiajia I've pushed changes in commit a1b893c to allow users to customize dir and file icons using opts.icons.kinds.file_icon and opts.icons.kinds.dir_icon. Can you try to implement mini.icons support in the default callback of these two options?

mathjiajia commented 3 weeks ago

I will reopen a PR