Skip to content

Commit

Permalink
fix(statuscolumn): right align signs when virtnum > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 28, 2024
1 parent 9a2f773 commit a786c47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/lazyvim/util/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a786c47

Please sign in to comment.