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

Evaluate Highlight functions together with providers #200

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ben-hansske
Copy link

  • Closes highlight function only called on init? #188.

  • If the user passes a function or a table containing a function to highlight or separator_highlight, the highlight groups do get initialized, but do not get updated frequently.

  • The solution would include having a second table, containing all the "dynamic" highlights, i.e. the ones that are/contain functions and need an update.

  • If that list is not empty, add to vim.wo.statusline an luaeval, that updates the highlights.

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.

highlight function only called on init?
1 participant