Skip to content

feat!: support for more highlight attrs#150

Merged
willothy merged 2 commits into
mainfrom
hl-refactor
Jul 31, 2023
Merged

feat!: support for more highlight attrs#150
willothy merged 2 commits into
mainfrom
hl-refactor

Conversation

@willothy

@willothy willothy commented Jul 28, 2023

Copy link
Copy Markdown
Owner

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
@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