nvim-tree.lua icon indicating copy to clipboard operation
nvim-tree.lua copied to clipboard

Allow user to supply their own `get_icon` function to set file icons and highlights

Open ymn64 opened this issue 2 years ago • 2 comments

For example, add an option renderer.icons.glyphs.get_icon_func that expects a function that takes filename, extension and options(?) as input and returns an icon and a highlight group.

ymn64 avatar Mar 26 '23 01:03 ymn64

That could work. I'd prefer not to expose the node, however we could clone most of the node's data.

Two callbacks might be preferable get_icon get_hl.

alex-courtis avatar Mar 26 '23 04:03 alex-courtis

#2415 Decorators may be enhanced to with a user callback.

alex-courtis avatar Dec 03 '23 03:12 alex-courtis