Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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