Commit Graph

203 Commits

Author SHA1 Message Date
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 15d834494e
feat(colors): add plantuml gantt colors 2021-01-26 12:34:33 -05:00
Iron-E 2fb6dc1b2a
feat(colors): add more TOML default links
For some reason, `tomlFloat` was linked to `Number`. There is a `Float`
highlight group dedicated for that.

Additionally, the `tomlDate` group was linked to `Constant`. I don't
think that's necessarily a fitting group, since a date is a literal,
and while literals _are_ constants it does not seem fitting. I gave it
the `Special` link instead, since `Special` is supposed to be used
whenever there is an "other" type in a language.
2020-12-31 17:22:40 -05:00
Iron-E 495c76dfea
fix(colors): git deleted file now linked to Dir 2020-12-30 14:10:18 -05:00
Iron-E 1e7d4e7b6d
fix(colors): vimUserFunc not matching vimFunction 2020-12-30 14:00:28 -05:00
Iron-E a36291cf05
fix(colors): link giconfig unselected to selected 2020-12-30 02:19:01 -05:00
Iron-E a350454a78
feat(colors): link FernBranchText to Directory 2020-12-30 02:10:50 -05:00
Iron-E a057eda509
feat(config): add gitcommit highlight defaults
There are some more changes which should be made in order to maintain
consistency across environments. Directory is now used for file names,
and SpecialComment is used for the headers.
2020-12-30 02:01:18 -05:00
Iron-E 529bbd83cf
feat(colors): highlight gitconfig like toml
Git config and TOML have somewhat similar structure. Because of this,
I'm making gitconfig follow that style.
2020-12-30 01:53:44 -05:00
Iron-E 0ddfde041b
feat(colors): link dyn to rustStorage 2020-12-20 00:48:27 -05:00
Iron-E b029086122
fix(colors): helpSpecial showing wrong 2020-12-19 16:36:03 -05:00
Iron-E d1b8699983
ref(colors): extract help groups
There were help syntax highlights scattered around. THis moves them to
one, dedicated spot.

Additionally, there were some incorrect settings for markdown help
blocks, and they were corrected.
2020-12-17 14:18:02 -05:00
Iron-E aabed249a1
ref(colors): use Ignore for mkdBold
The `SpecialComment` group didn't fit.
2020-12-17 14:06:08 -05:00
Iron-E 527245d736
style(colors): make definitions more compact
The groups defined were tabularized to a fault. I think this undoes some
of that.
2020-12-17 13:58:56 -05:00
Iron-E 3bced25e47
ref(colors): add NONE constant
The appearance of a lone `{}` was perhaps confusing to some. Behind the
scenes, whenever an attribute is missing from a table, it will be
defaulted to 'None'. Transiently, in using `{}` we are able to shortcut
directly to these defaults.

However, it does not read well. This commit introduces a constant that
makes it clear what is happening.
2020-12-17 13:44:25 -05:00
Iron-E 703f512407
style(colors): tabularize lua links 2020-12-17 13:41:55 -05:00
Iron-E 263dccb7fe
fix(colors): luaIn not matching luaRepeat
`in` is only used here. It should match
2020-12-13 23:47:10 -05:00
Iron-E e9733ce739
feat(colors): more defaults for help files
The help files had some defaults that didn't necessarily make a lot of
sense to me. They changed to be what their names imply.
2020-12-13 19:07:13 -05:00
Iron-E 53e144e6d2
feat(colors): git config highlighting 2020-12-13 17:42:57 -05:00
Iron-E 6ef4dabd8c
ref(colors): use Exception for rustPanic
This should be the default, as it is what Exception is for.
2020-12-13 17:01:11 -05:00
Iron-E 6dc4fce8d1
ref(colors): bold labels
Labels are closer to titles than statements, and they should stick out.
Bold them.
2020-12-13 16:19:55 -05:00
Iron-E 1e95f6d304
ref(colors): use italics for repeat
The other statement types use italics, so it should probably use italics
to in order to fall in line with the meaning of the keyword.
2020-12-13 16:09:26 -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 2f28f199b4
docs(media): update preview
The preview was old, and the colors have been updated. It should be
changed to reflect the newest updates.
2020-12-12 15:19:21 -05:00
Iron-E 929cbb6869
feat(syntax): add highlighting for vim functions 2020-12-12 15:14:08 -05:00
Iron-E 62b7da590e
ref(syntax): change default link for function args 2020-12-12 15:12:19 -05:00
Iron-E 2da8bbac90
feat(syntax): add default link for function args 2020-12-12 13:54:55 -05:00
Iron-E da28835bf7
feat(syntax): add default for vimCmdSep 2020-12-12 13:52:23 -05:00
Iron-E 99f46e10c3
ref(syntax): distinguish between blue and teal
Makes blue slightly more purple.
2020-12-12 13:01:46 -05:00
Iron-E 3805351253
ref(colors): bold operators 2020-12-12 12:41:20 -05:00
Iron-E c343b61db9
ref(color): distinction improvements
Helps tell the different between green_dark and green.
2020-12-11 19:26:06 -05:00
Iron-E 7425714544
ref(colors): don't link rustTrait to rustIdentifier 2020-12-11 18:07:17 -05:00
Iron-E 399786bfab
ref(colors): use identifier for rustidentifier 2020-12-11 17:30:31 -05:00
Iron-E 858adbb4f2
ref(colors): readability improvements
One of this template's goals is to be visible in any range of blue
light. The other goal of the template is to be distinguishable
semantically. This commit brings us closer to that goal.
2020-12-11 16:30:20 -05:00
Iron-E 6b0e85b874
feat(colors): highlight commit message overflow 2020-12-11 02:35:22 -05:00
Iron-E 9f52a37aed
ref(colors): various adjustments
1. Cyan and teal are now more distinguishable
2. Git messages are linked to 'Title'
3. Rust highlight groups use better defaults
2020-12-10 23:53:24 -05:00
Iron-E b971f3b49b
docs(README): update links to preferred syntax files
This updates the links to two plugins:

1. java-syntax.vim
2. rust.vim

java-syntax.vim  hasn't had a commit in a few months, and is pending a
PR from me which will enable syntax highlighting of delimiters. For the
time being, it would be better to use that.

rust.vim has made the decision to not allow highlighting of user types,
and while I understand their reasoning, I completely disagree. For that
reason I will maintain the fork and merge any changes from upstream.
2020-12-10 04:09:15 -05:00
Iron-E 028a386234
feat(colors): add more highlight links
This commit adds highlight links which are relevant for an open PR on
rust-lang/rust.vim .
2020-12-10 03:29:55 -05:00
Iron-E f671067e97
ref(colors): change jsonEscape to specialchar
`jsonEscape` is used for the exact purpose that `SpecialChar` was meant
for. So, I updated the `:hi link` to match it.
2020-12-09 18:02:04 -05:00
Iron-E 9dca0299b9
ref(colors): adjust tomlTable link
`tomlTable` used to be linked to `StorageClass`, which is completely
inappropriate for what is actually is.

It is now linked to `Structure`, which is more appropriate.
2020-12-08 17:06:17 -05:00
Iron-E 63ba9ddbfd
feat(colors): add coq proof highlight 2020-12-06 22:16:24 -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 0d9322aac7
ref(colors): link coq punctuation
Before, punctuation groups were separately linked to `Delimiter`. Now,
they are linked to each other so that if one changes away form
`Delimiter` in the future, the other will follow.
2020-12-05 14:54:14 -05:00
Iron-E a4e48a6f9b
feat(colors): Coqtail support
This commit adds support for whonore/Coqtail.
2020-12-05 14:44:35 -05:00
Iron-E 6512def838
ref(colors): refine colors to match latest plugin updates
`barbar.nvim` had an update which separated buffer index colors from
their respective buffer separators colors. Additionally, `vimtex` had
an update which changed many names of its highlight groups.

This commit aims to relieve some of the visual oddities which may have
occured over the last few days, as a result of those changes.
2020-12-02 15:08:25 -05:00
Iron-E c4f98237c5
ref(colors): update vimtex group names
Vimtex recently had a 2.0 release, and so now this template must also
update the names of the changed groups to match.
2020-11-25 14:12:31 -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