bmessages.nvim icon indicating copy to clipboard operation
bmessages.nvim copied to clipboard

Missing syntax highlighting

Open linuxissuper opened this issue 1 year ago • 2 comments

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

image vs
image

linuxissuper avatar Jan 16 '24 09:01 linuxissuper

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

  • https://neovim.io/doc/user/message.html

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

ariel-frischer avatar Jan 16 '24 09:01 ariel-frischer

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.

l-zeuch avatar Jan 29 '24 09:01 l-zeuch