goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.82k stars 109 forks source link

Change color for specific characters in header #151

Closed xbladesub closed 1 year ago

xbladesub commented 1 year ago

Is there any way to interpolate/change color for specific characters in header?

goolord commented 1 year ago

https://github.com/goolord/alpha-nvim/blob/main/doc/alpha.txt#L169

GabMus commented 1 year ago

This doesn't work for header, setting dashboard.header.opts.hl to something like {{'DiagnosticError', 0, -1}, {'Include', 0, -1}} makes the header text use the default foreground color.

goolord commented 1 year ago

yes, it does work for the header, the header is just type = "text", the problem with that snippet is that the range for both of those highlight groups is the same