ariel-frischer / bmessages.nvim

Bmessages.nvim better :messages window using an auto-updating buffer.
MIT License
43 stars 3 forks source link

Missing syntax highlighting #9

Open linuxissuper opened 10 months ago

linuxissuper commented 10 months ago

When I use :messages I get colors for errors (maybe more?)
But :Bmessages is just a plain buffer

image vs
image

ariel-frischer commented 10 months ago

Good question I haven't noticed that and can't seem to find relevant documentation around it.

If anyone has some context on syntax highlighting for default :messages window perhaps I can port it over to the :Bmessages buffer.

l-zeuch commented 9 months ago

There is echohl^1, which lets you use any highlight group. The main construct you usually see is something like this:

echohl ErrorMsg
echo "Error: Something went wrong"
echohl None

I'm not sure how to extract this highlighting info from the message buffer, if at all, however. So I'm probably not really able to help any further.