-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
"compact" rendering style has messed up highlight positioning #171
Comments
I can't reproduce any issue with the highlighting, if you can provide a minimal |
I also have this issue. I'm on nvim nightly I forked the lazy starter repo to reproduce the issue. https://github.com/mikesmithgh/starter/blob/nvim-notify-compact-issue-171/lua/plugins/nvim-notify.lua You can execute the command:
Then search for text that doesn't exist Please let me know if you need any additional information |
@rcarriga Sorry, I've been getting sidetracked left and right. :( Can't provide a repro right now, I'll try tomorrow. I'm also (kind of) using lazyvim, which uses noice.nvim with nvim-notify as a backend. I suspect the problem is somewhere in that chain, but if you can't reproduce, it's apparently not in nvim-notify. |
Hey @runiq I was able to add the steps to reproduce that sound like very similar setup 👍 |
FYI this appears to be an issue in noice.nvim, I opened a draft PR: folke/noice.nvim#375 |
This has been fixed in the meantime in Noice. See here Some additional context: Noice overrides the nvim-notify renderer so we can also add highlights to the messages themselves. Things coming in though The |
Hey, thanks all for putting in the work, and sorry I couldn't be of more help. I'll try to do better next time! |
Great to see a resolution 😄 Thanks @folke for the info and @mikesmithgh for the reproduction! |
When I display the output of
:highlight
commands with the"compact"
render style, the positions of the highlights seem to be off by a lot:Not sure what causes it, though.
The text was updated successfully, but these errors were encountered: