nvimdev / indentmini.nvim

A minimal and blazing fast indentline plugin
MIT License
171 stars 12 forks source link

Offset is broken with `:set nowrap` #22

Closed savchenko closed 3 months ago

savchenko commented 3 months ago

listchars used on the screenshot below:

conceal:·,eol:¶,extends:»,nbsp:¬,precedes:«,space:·,tab:▸ ,trail:·

indent

glepnir commented 3 months ago

which commit ? and provie an example code can reproduce will be useful .. my test with a long line seems like correct

image
savchenko commented 3 months ago

Exact code is immaterial here as it can be reproduced with anything. The issue becomes a problem when there are splits and one of them is :set nowrap. To see it in action:

  1. Open two vertical splits
  2. Load file with long lines into the leftmost split
  3. Reduce horizontal size of the left split so that lines don't fully fit
  4. :set nowrap and try to navigate left/right as if you are trying to read a long line.
  5. You will see the indents on empty lines do not move with the rest of the indent lines. image Note the precedes and extends listchars on the left and right sides: image
glepnir commented 3 months ago

reproduced.