Skip to content

Commit 6b66c32

Browse files
chore: add virt_lines as another limitation with colorcolumn
1 parent 1e2e9a3 commit 6b66c32

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/limitations.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ which works because the simple string width calculation is if anything going to
4141
an over-estimate which is not really a big deal, just adds some extra padding in
4242
the worst case but the block remains contiguous.
4343

44+
The `colorcolumn` will also be missing on any `virt_lines` marks. This applies to
45+
the lines above and below pipe tables, heading borders, latex formulas, and potentially
46+
others added after the time of writing. With this limitation we have no way around
47+
it other than re-implementing `colorcolumn` in this plugin, which is not something
48+
the author has any interest in doing. Ideally neovim would be able to detect new
49+
virtual lines and apply the `colorcolumn` to them, I do not believe there is any
50+
intentions to do this since virtual lines exist mostly outside the standard buffer.
51+
4452
Below are a few things to try out to improve the aesthetic:
4553

4654
- Use `win_options` to disable `colorcolumn` when rendering, this is my personal

0 commit comments

Comments
 (0)