m4xshen/smartcolumn.nvim

Does not behave correctly in Neovim nightly

Closed this issue · 3 comments

Color column will appear when crossing the configured column number, but then if you modify/delete text so it's less than the configured number, the color column stays visible when it should disappear.

Confirming the same, and adding that once it has been triggered to appear in one buffer it appears in all subsequent buffers.

Looks like the problem is here

vim.wo[win].colorcolumn = nil

Changing that to

vim.wo[win].colorcolumn = '0'

solves the problem.

@VladimirBeliakov Thanks, the latest version should work now!