Skip to content
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

Missing syntax highlighting #9

Open
linuxissuper opened this issue Jan 16, 2024 · 2 comments
Open

Missing syntax highlighting #9

linuxissuper opened this issue Jan 16, 2024 · 2 comments

Comments

@linuxissuper
Copy link

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

image
vs
image

@ariel-frischer
Copy link
Owner

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
Copy link

l-zeuch commented Jan 29, 2024

There is echohl1, 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.

Footnotes

  1. https://neovim.io/doc/user/eval.html#%3Aechohl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants