Problem: plugins that don't use devicons have no way to get nonicons glyphs for files. The only integration path is the devicons monkey-patch via apply(). Solution: add get_icon(name, ext) and get_icon_by_filetype(ft) to the public API in init.lua. Both use lazy require of the resolve module and return nil on miss so callers decide fallback. Document both functions in vimdoc and update the oil.nvim recipe. |
||
|---|---|---|
| .. | ||
| health.lua | ||
| init.lua | ||
| mapping.lua | ||
| override.lua | ||
| resolve.lua | ||