Open hernancerm opened 2 years ago
You need to modify your font and make those "separator" characters taller. The GUI does not differentiate between those characters or any other character.
That makes sense, I know Kitty provides symbol mapping, which allows mapping unicode codepoints to a particular font. I might have some mapping that makes the vertical bar char taller in Kitty than in VimR.
I've tried Fira Code in VimR, which has a very tall vertical bar, and the broken vertical lines no longer happens.
It would be nice if VimR also provided the symbol mapping feature that Kitty provides, not sure how big of a feature request that would be. This would remove the need to patch fonts for VimR, as it's now the case for Kitty. Here is some documentation about the symbol map in Kitty:
https://gist.github.com/fwfurtado/e7e40cf8b07cff18c6d7bd1649676abf#file-kitty-conf-L60
EDIT:
I've explicitly configured the delimiter character used by nvim-tree to be the box drawing unicode character U+2502. When using Fira Code, there are no gaps, when using Iosevka (and other fonts) I see gaps. In the box drawing document provided by unicode.org, it says:
The shapes of the reference glyphs used in these code charts are not prescriptive. Considerable variation is to be expected in actual fonts.
So I think the height of a Unicode character might depend also on the font, not just on the codepoint. I haven't been able to make U+2502 not full height in Kitty, even when mapping it to the one provided by Iosevka, so not sure if some other magic is being done by Kitty, or what is special about Fira Code.
Environment
Pre-conditions
init.vim
. Make sure to also have vim-plug installed.lua<<EOF require'nvim-tree'.setup { renderer = { indent_markers = { enable = true, }, }, } EOF lua require'gitsigns'.setup {}