luukvbaal/statuscol.nvim

How do I get 1-char-wide sign column?

dimitry-ishenko opened this issue · 4 comments

The image in README shows 1-char-wide sign column and the description reads "... and a sign segment that is only 1 cell wide that shows all other signs."

Mine never goes less than 2 chars despite setting maxwidth = 1 and colwidth = 1. I've found references online that 2-char minimum is hard-coded in vim.

How do I achieve 1-char-wide sign column? I am on neovim 0.9.4

The example under install shows the config for the image in the README.

The relevant config is the sign.colwidth field:

 colwidth = 2,        -- number of display cells per sign in this segment

Thanks @luukvbaal. That's really strange, but it's working now. :) Not sure what I did wrong earlier.

The only remaining issue is how do I add '│' on the line that don't have any signs?

This is what I have now:
Screenshot from 2023-11-28 16-25-17

And this is what I am trying to do:
Screenshot from 2023-11-28 16-25-17 2

Nevermind, fillchar to the rescue. :)