diff options
Diffstat (limited to '.config/nvim/lua/vimrc/plugins.lua')
| -rw-r--r-- | .config/nvim/lua/vimrc/plugins.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.config/nvim/lua/vimrc/plugins.lua b/.config/nvim/lua/vimrc/plugins.lua index 99eb5a4..e3f9692 100644 --- a/.config/nvim/lua/vimrc/plugins.lua +++ b/.config/nvim/lua/vimrc/plugins.lua @@ -401,7 +401,10 @@ return { icons = function(ctx) local section = '' for l = 1, ctx.level do - section = section .. ctx.sections[l] .. '.' + local section_number = ctx.sections[l] + if section_number ~= 0 then + section = section .. section_number .. '.' + end end return 'ยง ' .. section .. ' ' end, |
