Question regarding highlighter foreground mode
prss-ad opened this issue · 5 comments
Hi,
I read this in the docs:
highlight_mode ~
"fg" | "bg" | "foreground" | "background"
Default: "bg"
Option to highlight text foreground or background. It is used to
output_line and highlighter.
So i assumed it means i can change the highlight mode of the buffer to highlight the text not the background of it.
I could not get it to work. May be i misunderstood the docs.
I tried to pass to setup { highlight_mode='fg' } but still the background of text gets colored.
I also tried { highlighter = { highlight_mode = 'fg'}} with no luck.
Am i missing something or it is not supported?
Thanks for this excellent color picker by the way.
best regards.
Hi, thanks for your support. I tried that and it did not work before. But i noticed in your example that you set auto_enable = true. I do not. this is my setup.
I use Lazy and enable the highlighter with the command CcchighlighterEnable. But this way i always get background highlighting.
Personally i'd prefer not to have a background set when using foreground mode.
Thanks again.
I guess setup function is not called before reading plugin/ccc.lua, but the plugin manager issue is not my issue to solve.
If you can provide a procedure to reproduce this without the plugin manager, I'll fix it.
Thank you for your help. I've been trying other configurations including other plugin managers. I believe you are right. There is an issue when using Lazy. I have not figured out what it is yet.
Sorry for the bother.
Have a nice weekend.
best regards.