stevearc / oil.nvim

Neovim file explorer: edit your filesystem like a buffer
MIT License
3.5k stars 99 forks source link

feat: add support for `mini.icons` #439

Closed mehalter closed 1 month ago

mehalter commented 1 month ago

This adds explicit support for mini.icons for providing icons to oil. This generalizes the icon providing into a function that figures out which icon provider is available (preferring mini.icons over nvim-web-devicons) and returning a common icon providing interface.

mini.icons also has the ability to provide directory icons so this allows the icon provider to provide any type of icon and it's up to the provider to figure out how to handle what it can.

2024-07-05_09:48:45_screenshot 2024-07-05_09:48:59_screenshot

I tested it with each plugin individually as well as both and neither. It is working great! Let me know what you think of the implementation or if you have any recommendations to refactor this. I tried to match the code style and conventions in the codebase.

Thanks so much for such a great project!

stevearc commented 1 month ago

Thanks for the PR!