fix(statuscolumn): right align signs when virtnum > 0

This commit is contained in:
Folke Lemaitre 2024-03-28 23:25:06 +01:00
parent 9a2f773090
commit a786c471df
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -136,6 +136,10 @@ function M.statuscolumn()
components[2] = "%=" .. components[2] .. " " -- right align components[2] = "%=" .. components[2] .. " " -- right align
end end
if vim.v.virtnum ~= 0 then
components[2] = "%= "
end
return table.concat(components, "") return table.concat(components, "")
end end