feat: add support for column text alignment (#711)

* feat: add support for column text alignment

* refactor(util): replace rpad with pad_align

* refactor(columns): whitespace handling in parse_col

* refactor: small changes

* doc: add align option to doc generation

* refactor: replace lpad with pad_align

---------

Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
This commit is contained in:
malewicz1337 2026-01-14 06:28:16 +01:00 committed by GitHub
parent fbbb2a9872
commit 6b59a6cf62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 64 additions and 46 deletions

View file

@ -74,7 +74,8 @@ M.set_loading = function(bufnr, is_loading)
M.set_loading(bufnr, false)
return
end
local lines = { util.lpad("Loading", math.floor(width / 2) - 3), bar_iter() }
local lines =
{ util.pad_align("Loading", math.floor(width / 2) - 3, "right"), bar_iter() }
util.render_text(bufnr, lines)
end)
)