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

Highlights randomly appears and disappears #359

Open
raffaem opened this issue Feb 14, 2024 · 0 comments
Open

Highlights randomly appears and disappears #359

raffaem opened this issue Feb 14, 2024 · 0 comments
Labels

Comments

@raffaem
Copy link

raffaem commented Feb 14, 2024

It looks like some combination of spaces / tabs (not sure which one exactly) at the beginning of a line will mess up highlight, with iron.nvim randomly showing and hiding the highlights.

In the following example I use a red background for the highlights, in order to emphasize the problem. I do so with:

  highlight = {
    italic = true,
    bg = "red"
  },

Notice that, once I scroll up, highlights are randomly shown and hidden.

20240214T193635.webm

I realized the bug when my code started to randomly being rendered in italics (which is the default highlight style).

EDIT: To work around the bug, disable highlights with highlight=false.

@raffaem raffaem changed the title Highlights messed up Highlights randomly disappears Feb 14, 2024
@raffaem raffaem changed the title Highlights randomly disappears Highlights randomly appears and disappears Feb 14, 2024
@hkupty hkupty added the bug label Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants