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

Highlights randomly appears and disappears

Open raffaem opened this issue 4 months ago • 0 comments

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 avatar Feb 14 '24 18:02 raffaem