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

View File

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