Commit graph

32 commits

Author SHA1 Message Date
Kye Shi a065833f35 Fix parsing for RRGGBBAA hex codes 2024-05-10 12:01:27 +08:00
Akin 36c610a971 Update install instruction
This PR updates the README to make it clear to users that they have to add the lua setup line after of the block where the plugin is added. I just hit this issue and found #38 which explained and resolved it for me so I've added it to the README. Hopefully that helps 👍
2020-06-11 21:39:05 +09:00
Ashkan Kiani 35f1aad99c Merge branch 'master' of github.com:norcalli/nvim-colorizer.lua 2019-11-07 20:16:53 -08:00
James Reed 6da5d9ba23 Implement ColorizerToggle command
Closes #27.
2019-11-07 20:16:37 -08:00
James Reed ee1a2f0a74 Add function to check if attached to a buffer 2019-11-07 20:16:37 -08:00
Ashkan Kiani 8f98c7bb0c Disable strict index checking. 2019-11-07 20:14:32 -08:00
Ashkan Kiani 174b7a67ce
Update bug.md 2019-10-26 13:16:51 -07:00
Ashkan Kiani 128ad8bc0e Update issue templates 2019-10-24 11:37:44 -07:00
Ashkan Kiani 530b8244ab Add github funding. 2019-10-23 17:20:21 -07:00
Ashkan Kiani 3e19acc414
Move dependencies to their own directory. (#21) 2019-10-22 21:27:01 -07:00
Ashkan Kiani f5017b0dc1
Refactor (#19)
- 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.
- Refactor and allow configuring of color_name_parser setup
2019-10-19 12:35:55 -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