Ashkan Kiani
60a456a48b
Allow per file configuration of lowercase.
2019-10-19 12:08:52 -07:00
Ashkan Kiani
34c8ce7980
Refactor and allow configuring of color_name_parser
...
- A third parameter (undocumented) can be used to modify the initial
configuration of the trie.
- Allow printing a trie in thicc mode.
2019-10-19 11:51:33 -07:00
Ashkan Kiani
9333430ba8
Update trie
...
- Refactor and clean up old code.
- Fix the trie printing (it's perfect now :o)
- Add the ability to search from a starting point. This can help
avoid allocations.
- Avoid an allocation in longest_prefix.
2019-10-19 10:38:09 -07:00
Ashkan Kiani
83ddc656b3
Improve algorithm performance and correctness. ( #15 )
...
- Disable highlighting for HEX codes and NAME codes when
preceded by alphanumeric codes.
- Hand written parser with 1 pass parsing.
- Update Trie to be more ergonomic.
- Add test file with expected outputs for edge cases.
- Cache matcher creation and refactor.
- Refactor
Faster than ever baby
2019-10-18 21:51:56 -07:00
Ashkan Kiani
f44f651adf
Change wording in README.
2019-10-18 15:13:32 -07:00
Ashkan Kiani
3f775962e9
Add notes on compatibility to the README.
2019-10-18 15:11:26 -07:00
Ashkan Kiani
6c3d4e4b4c
Update color functions ( #13 )
...
- Add hsl, hsla, rgba, RRGGBBAA
- Redo the parser for rgb,rgba,hsl,hsla codes.
- Fix the trie implementation.
- Bugfix and refactor alpha/error handling
2019-10-18 14:27:02 -07:00
Ashkan Kiani
f661199197
Allow excluding files from highlight with '*' ( #11 )
...
Fixes GH-5
2019-10-18 09:56:49 -07:00
Ashkan Kiani
615e32c94f
Update docs and luadocs
2019-10-18 09:43:18 -07:00
Ashkan Kiani
962453e7b7
Update with fully qualified settings and commands.
...
- Add command documentation and new commands.
- Add new settings which have a better naming scheme.
- Fix reloading settings and add a command to detach highlighter.
- Fix #RGB pattern like for #define where it will highlight the #def
part.
2019-10-18 09:25:25 -07:00
Filipe Kiss
a3dba907bd
Add FileType information to the README ( #10 )
...
* Add FileType information to the README
* Add ColorizerAttachToBuffer command
2019-10-18 06:53:48 -07:00
Ashkan Kiani
cfb6bfa4a1
Merge branch 'master' of github.com:norcalli/nvim-colorizer.lua
2019-10-17 20:00:30 -07:00
Ashkan Kiani
645b656104
Add Demo.gif
2019-10-17 20:00:04 -07:00
Ashkan Kiani
7cf9641be2
Update README.md
2019-10-17 19:49:56 -07:00
Ashkan Kiani
b59c556371
LICENSE
2019-10-17 19:41:59 -07:00
Ashkan Kiani
7fefb96644
Refactor and cleanup.
2019-10-17 19:31:17 -07:00
Ashkan Kiani
7bb80eb499
Critical bugfix!
2019-10-17 19:17:09 -07:00
Ashkan Kiani
2057fb8953
./README.md
2019-10-17 17:52:18 -07:00
Ashkan Kiani
90ab6b7a65
Add reload and bugfix highlight name.
...
Add ReloadBufferColorizer
Add nvim.lua
Fix highlight_buffer names for highlight_cache
2019-10-17 17:14:56 -07:00
Ashkan Kiani
fe0cb5f822
./README.md
2019-10-17 16:39:00 -07:00
Ashkan Kiani
824bc37f99
Add colorizer-lua.txt
2019-10-17 16:35:33 -07:00
Ashkan Kiani
94197db4be
Add readme, docs, rgb(), #RGB, and options
...
- Add support for `rgb(...)` functions behind an option gate.
- Highlight #RGB codes.
- Add options, like `rgb_fn` and `no_names`
- Add luadoc.
2019-10-17 16:26:20 -07:00
Ashkan Kiani
f0c8b75cc4
Initial commit.
2019-10-17 15:15:32 -07:00