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

Indent lines get cleared on one window if scrolling the same buffer in another window

Open jbarap opened this issue 7 months ago • 2 comments

Describe the bug When viewing a single buffer in two windows simultaneously, the active window behaves as expected, but when scrolling the buffer on the active window, the indent lines on the secondary window get gradually cleared.

To Reproduce Steps to reproduce the behavior:

  1. Open any file, and go to a section with indent lines displayed (in the example neovim/src/nvim/eval/funcs.c)
  2. Open a vertically split window (ctrl-w v)
  3. Scroll the buffer down in one window
  4. Watch as the indents disappear in the other window

Expected behavior As long as a buffer is visible in a window from the active tab, the indent guides should stay visible in each window's viewport.

Screenshots Both windows with indents: image

As the right window is scrolled, the indents in the left window get cleared: image

Additional context Config:

      require("hlchunk").setup({
        indent = {
          chars = {
            "▏",
          },
        },
        blank = {
          enable = false,
        },
        chunk = {
          enable = false,
        },
        line_num = {
          enable = false,
        }
      })

Great job with the plugin!

jbarap avatar Dec 25 '23 21:12 jbarap