Skip to content

feat(icon): support using highlight group in add_icon_fn()#256

Open
brianhuster wants to merge 4 commits into
justinmk:masterfrom
brianhuster:master
Open

feat(icon): support using highlight group in add_icon_fn()#256
brianhuster wants to merge 4 commits into
justinmk:masterfrom
brianhuster:master

Conversation

@brianhuster

Copy link
Copy Markdown
Contributor

The callback parameter of add_icon_fn can now returns either a string or a dictionary with 2 fields (only in Vim 9.1+textprop and Nvim 0.8+):

  • icon (string): A string represents the icon
  • hl (string): a highlight group that must exists before the callback is called

Comment thread autoload/dirvish.vim Outdated
Comment thread autoload/dirvish.vim Outdated
Comment thread autoload/dirvish.vim Outdated
Comment thread autoload/dirvish.vim Outdated
Comment thread doc/dirvish.txt Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants