Skip to content

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

Open
brianhuster wants to merge 4 commits intojustinmk:masterfrom
brianhuster:master
Open

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

Conversation

@brianhuster
Copy link
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

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