Iron-E
18b7ebb4b1
docs(highlite): properly document module
2021-08-03 19:41:13 -04:00
Iron-E
085942d22b
perf(highlite): calculate the cterm palette once
2021-06-13 12:05:38 -04:00
Iron-E
b27a56cbfb
fix(highlite): `set tgc` after `color highlite`
...
SEE #11
2021-06-12 18:59:19 -04:00
Iron-E
9c15a789df
fix(highlite): `t_Co` invalid option
...
A recent change to `vim.o` caused `t_Co` to be not recognized when
indexing through this option table. Using `vim.go` works as intended.
2021-05-29 18:38:30 -04:00
Iron-E
aa8e36bd4f
fix(highlite): highlight groups being cleared
...
This was a step I took from the plugin this colorscheme is forked from
(romainl/vim-rnb) but it turns out that it causes problems and doesn't
actually solve anything.
Taking out this line fixed a highlight group being cleared when it
should not have been, although interestingly not _all_ highlight groups
are being cleared consistently. So its just introducing inconsistency
into this plugin which I do not want.
SEE glepnir/galaxyline.nvim#88
2021-02-10 13:08:38 -05:00
Iron-E
2798132cdf
style(highlite): inline __call specification
2021-01-26 12:54:04 -05:00
Iron-E
8757a6c228
fix(highlite): `:terminal` shows wrong colors
...
This was caused by the index of `vim.g.terminal_color_X` beginning at 1
rather than 0. I thought initially that this would be translated by the
Lua metatable but I guess not!
CLOSES #8
2021-01-26 12:37:13 -05:00
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
Iron_E
cd609e89a9
Adjust settings of lsp highlighting
2020-06-24 19:28:37 -04:00
Iron_E
68e2401837
Make logic less complicated
2020-06-23 23:16:17 -04:00
Iron_E
2e189530ee
Fix bad method reference
2020-06-23 23:04:28 -04:00
Iron_E
2248d49eb8
Add highlighting of the language server
2020-06-23 23:00:44 -04:00
Iron_E
a582a162e9
Adjust color settings; use get() consistently
2020-06-22 15:00:06 -04:00
Iron_E
a38985d366
Add highlighting for vimIsCommand
2020-06-22 00:34:03 -04:00
Iron_E
03e2382a30
Fix several mistakes; update readme
2020-06-21 22:38:18 -04:00
Iron_E
5f89cc8da0
Update colors so that identifiers can be spotted immediately
2020-06-21 21:43:51 -04:00
Iron_E
e3bef4bf4f
Add highlighting for xmlEqual
2020-06-20 23:58:46 -04:00
Iron_E
2a2797578b
Don't italicize SpecialComment
2020-06-20 23:52:38 -04:00
Iron_E
04feb15624
Add a few more plugins
2020-06-20 22:32:49 -04:00
Iron_E
9d2fc34ad0
Remove duplicate
2020-06-20 18:21:09 -04:00
Iron_E
365891b181
Increase brightness of NonText
2020-06-20 02:01:23 -04:00
Iron_E
286357d09e
Adjust boldness of gitgutter
2020-06-20 01:47:45 -04:00
Iron_E
9db5416b7f
Update colors
2020-06-20 00:57:51 -04:00
Iron_E
ed1fe67fb5
Add more highlight groups
2020-06-19 23:53:31 -04:00