itchyny/lightline.vim

strange space on the right

call-me-anything-you-want opened this issue · 5 comments

I find space on the right of the lightline which looks like this:
image

here is my related setting:
let g:lightline.separator={'left': "\ue0b8", 'right': "\ue0be"}

the character "\ue0be" looks like this:
image

I'm pretty sure there is no extra space in this setting. And I have tried deleting other settings that I thought related to it in my vimrc as well but the problem is still not solved. So I can't figure what's wrong with it.

I'm using gVim 8.2 under windows 11.

This looks like a font issue. Try :echo "M\ue0beM" to see how it is rendered.

it looks like this:
image

the font I'm using is DejaVuSansMono_NF

Maybe setcellwidth will help.

Thank you for your help. I just found out how to solve it.
I deleted "set ambiwidth=double" in my vimrc and the space disappeared

I tried your suggestion as well.
:call setcellwidths([[0xe0be, 0xe0be, 1]]) can also solve the problem
Thanks