luukvbaal / statuscol.nvim

Status column plugin that provides a configurable 'statuscolumn' and click handlers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with `:set cpoptions+=n`

simonmandlik opened this issue · comments

Hi, thanks for the cool plugin!

I'm trying to setup showbreak character with cpoptions+=n. I have the plugin setup with gitsigns:

image

This works, the sign overflows to the next line in case of a wrap. But if I enable : set showbreak=▹\ and :set cpoptions+=n, I get this

image

The sign no longer overflows.

Besides, there are other problems with cpoptions+=n. For example, it doesn't align well with numbers in number column. I was wondering, would it be possible to somehow extend builtin.lnumfunc to take showbreak character into account?

Thanks!

Once you enable cpoptions+=n, the 'statuscolumn' is no longer responsible for what is drawn after a virtual line break. Neovim simply falls back to the legacy column when drawing the statuscolumn area for virtual lines. As such, cpoptions+=n and 'statuscolumn' are not really compatible for now, whether it looks acceptable is up to the user.

I see, thanks for the answer 👍