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!: support for more highlight attrs #150

Merged
merged 2 commits into from
Jul 31, 2023
Merged

feat!: support for more highlight attrs #150

merged 2 commits into from
Jul 31, 2023

Conversation

willothy
Copy link
Owner

@willothy willothy commented Jul 28, 2023

Closes #147

This is a breaking change as the config for highlighting is slightly different. Instead of using a "style" property, individual properties such as bold or underline are set via [name] = boolean, or [name] = fun(cx):boolean, the same way that fg, bg, and sp are set.

refactor: use Lua api to create hlgroups
@willothy willothy changed the title feat: support for more highlight attrs feat!: support for more highlight attrs Jul 28, 2023
Problem: calls to highlight group functions are called almost constantly, possibly affecting performance.
Solution: cache results of the calls, significantly reducing the number of API calls required for redraw.
@willothy willothy force-pushed the hl-refactor branch 5 times, most recently from 8911edc to 04f5d6c Compare July 31, 2023 12:26
@willothy willothy merged commit e0db489 into main Jul 31, 2023
10 of 16 checks passed
@willothy willothy deleted the hl-refactor branch July 31, 2023 12:28
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.

Add sp highlight
1 participant