Closed
Description
Description
If a file starts with a .
(dot), all padding will be missing on the git icons if renderer.icons.git_placement
is set to "right_align"
.
The issue has existed since I started using right aligned git icons in November so I don't think it's a regression.
Neovim version
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713773202
Operating system and version
Linux 6.12.10-zen1
Windows variant
No response
nvim-tree version
Clean room replication
return {
"nvim-tree/nvim-tree.lua",
opts = {
renderer = {
icons = {
git_placement = "right_align",
padding = " ",
glyphs = {
git = {
unstaged = "",
staged = "",
unmerged = "",
renamed = "",
untracked = "",
deleted = "",
ignored = "",
},
},
},
}
}
}
Steps to reproduce
- Create a file with a dot in front of the name and one without
- run
git init
- open nvim and look at the git icons in nvim-tree
mkdir foo && cd foo && touch bar .baz && git init && nvim
Expected behavior
The git icons should have their padding preserved:
Actual behavior
The git icons do not have their padding preserved:
Activity
fix(nvim-tree#3124): prevent empty icons_after response from breaking…
fix(nvim-tree#3124): prevent empty icons_right_align response from br…
fix(#3124): fix icon padding for "right_align" placements, notably fo…