dropbar.nvim icon indicating copy to clipboard operation
dropbar.nvim copied to clipboard

Add mini.icons support

Open mathjiajia opened this issue 1 year ago • 1 comments

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

mathjiajia avatar Sep 25 '24 10:09 mathjiajia

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 avatar Sep 25 '24 19:09 Bekaboo

@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?

Bekaboo avatar Oct 26 '24 04:10 Bekaboo

I will reopen a PR

mathjiajia avatar Oct 26 '24 05:10 mathjiajia