Iron-E
d1dad7ee27
fix(highlite): self.<highlight_link>.<attr> fails
...
When using the self-referencial syntax to create new groups out of the
predefined attributes of another:
```lua
Foo = function(self) return {fg=self.Foo.fg, bg=self.Bar.bg} end
```
If either `Foo` or `Bar` were a highlight link, they would fail to be
resolved. This is now fixed.
2020-12-13 16:07:54 -05:00
Iron-E
2541117eb6
fix(highlite): g:terminal_color_xx not being set
...
Previous changes to this plugin prevented the terminal color from being
set.
Even before the changes, the terminal color was not set in all
conditions. Now it will be!
2020-12-05 17:44:20 -05:00
Iron-E
20bc365437
ref(highlite): add tohex() function
...
This gets around having a bunch of long `string.format()` commands which
don't closely convey the meaning of what we want to do here.
2020-12-05 17:43:14 -05:00
Iron-E
f643c9304d
ref(highlite): new metatable in use_background_with
...
We shouldn't alter the contents of `attributes` during the function
call. Instead, we should create a new metatable for the background
color table, and assign it that way.
2020-12-05 17:41:24 -05:00
Iron-E
a7a3bc11fe
style(highlite): consistency improvements
...
In the project, there was inconsistent formatting when using the
`table`-as-`StringBuilder` approach. This commit fixes that.
2020-12-05 17:37:56 -05:00
Iron-E
92791fcfe4
fix: resolve functions before indexing
...
Highlight groups defined as functions now exhibit the following
behavior:
- Results of function calls are cached.
- Unresolved highlight groups are resolved before indexing.
2020-11-25 01:25:57 -05:00
Iron_E
08ba0780ae
Simplify highlite.group
2020-11-19 17:09:00 -05:00
Iron_E
b9cf35585c
Improve stability
2020-11-19 16:42:31 -05:00
Iron_E
96e23abf98
Initial implementation of sub-attribute linking
2020-11-19 13:55:36 -05:00
Iron_E
4fc8823a0c
Cleanup structure of highlighting backend
2020-11-19 12:12:03 -05:00
Iron_E
59de085efc
Expose functionality
2020-11-13 15:43:16 -05:00
Iron_E
3c0f206029
Initial implementation
2020-09-06 14:04:36 -04:00
Iron_E
c8ca0582c1
Fix bug where styles aren't correctly applied
2020-09-06 13:29:09 -04:00
Iron_E
fd2cb3a36f
Add folding comments to all functions
2020-09-06 13:21:30 -04:00
Iron_E
588b4729db
Fix bug with "NONE" default detection
2020-09-06 12:56:08 -04:00
Iron_E
576ea2b6a1
Initial simplification before light/dark support
2020-09-06 12:33:48 -04:00
Iron_E
4e937ae75d
Fix issues with vim.g referring to options
2020-09-05 12:30:41 -04:00
Iron_E
f868d2446e
Improve defaults detection
2020-09-05 11:30:32 -04:00
Iron_E
82b0fd14bb
Initial implementation
2020-08-28 13:26:37 -04:00
Iron_E
ad9c11755b
More more logic out of the loop
2020-07-16 09:29:39 -04:00
Iron_E
5e5b33165d
Add missing arguments to stylize()
2020-07-16 08:59:09 -04:00
Iron_E
3921d60476
Move more logic out of loops
2020-07-16 08:56:53 -04:00
Iron_E
d468be76c8
Improve performance
2020-07-15 23:30:14 -04:00
Iron_E
52531761ef
Move local function out to broader scope
2020-07-15 21:55:06 -04:00
Iron_E
f88f0d1ead
Simplify linking process (preserve backwards compatability)
2020-07-15 21:37:03 -04:00
Iron_E
d54158099c
Correct instructions
2020-07-02 13:06:31 -04:00
Iron_E
0ca9b90dcf
Initial refactor for performance improvement
2020-06-25 16:45:31 -04:00