-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Highlight the color that ccc.nvim can pick. #14
Comments
In fact, this is the next feature I was planning to inplement ;) |
Done. |
It is highlighted the colors that can be picked up. So, you can do it this way. local ccc = require("ccc")
ccc.setup({
pickers = {
ccc.picker.hex,
ccc.picker.css_rgb,
ccc.picker.css_hsl,
-- ccc.picker.css_name,
},
} See |
You can also specify file types to enable highlighting by using the options |
Thanks! <3 |
I have already decided to disable css_name by default. |
Have you updated to the latest version? |
This comment was marked as resolved.
This comment was marked as resolved.
ccc.nvim/lua/ccc/config/default.lua Lines 30 to 34 in 3b4ae50
This is the default setting, and I don't have css_name in there properly. And I can't reproduce it in my environment. Are you sure you are able to update it? Can you go to the plugin directory and check the commit? |
I have updated it to the latest version, and I have enabled css_name, but it still highlights words that don't match exactly. |
Ah - you're enabling it yourself. |
Done. exclude_pattern = {
hex = "[%w_]{{pattern}}",
css_rgb = nil,
css_hsl = nil,
css_name = {
"[%w_]{{pattern}}",
"{{pattern}}[%w_]",
},
} With this setting, css_name is now excluded if there is an alphabet or underscore before or after this. |
Sorry, fixed. It's a trace of print debug. |
Wow, guys! For names it now works ideally. :D That's so cool. <3 |
Yep! Thank you so much! |
Hi,
I was wondering if I can replace
colorizer.lua
with using onlyccc.nvim
. If I open some files and there are, like hex numbers meaning come colors it would show, what color it's. I mean something like this:The text was updated successfully, but these errors were encountered: