tjdevries / express_line.nvim

WIP: Statusline written in pure lua. Supports co-routines, functions and jobs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alignment issue

opened this issue · comments

Amazing statusline, thanks!

There is a problem with aligning center element when line number is double digit and column changes between single and double digit as seen below.

el

Ah, so you want that part to take fixed width? So it's not so noisy?

You can now do something like this:

      '[', builtin.line_with_width(3), ':',  builtin.column_with_width(2), ']',

To set the width that you want for line and column.

If that works for you, feel free to close the issue.

Would you mind adding right alignment as well? It works much better now though.

EDIT: '[', '%3l', ' : ', '%2c', ']', does the job.