You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I changed the behaviour of utils.center_align as its current behaviour does
not fit my use case. The injected string is shifted line by line rather than
indenting the whole block. I don't know if I should either:
open a PR, and overwrite the align function
open a PR, and add a new align function + user setting
keep it to my fork
Issue
I was playing with the multi line string rendered in the dashboard in order to
display custom ASCII art. Unfortunately, lines with numerous spaces around
are not properly rendered.
After reading utils.center_align method, I noticed that alignment is done on
a line basis instead of considering the whole block's indentation.
Please find below the code change and the different renderings.
Hi,
TLDR
I changed the behaviour of
utils.center_align
as its current behaviour doesnot fit my use case. The injected string is shifted line by line rather than
indenting the whole block. I don't know if I should either:
Issue
I was playing with the multi line string rendered in the dashboard in order to
display custom ASCII art. Unfortunately, lines with numerous spaces around
are not properly rendered.
After reading
utils.center_align
method, I noticed that alignment is done ona line basis instead of considering the whole block's indentation.
Please find below the code change and the different renderings.
Code change
In
utils.lua:53
Before
The current code applies shifts to each line independently.
After
We add a
fill_min
variable to indent all lines by the same amount.Please find below this wonderful spider I downloaded
here.
Raw string (input)
Neovim render (before)
Neovim render (after)
The text was updated successfully, but these errors were encountered: