aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/lua/vimrc/plugins.lua
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-11 03:16:05 +0900
committernsfisis <nsfisis@gmail.com>2025-03-11 03:16:05 +0900
commit351bb4bf42bac95ce2e42296e96e24e1bc266bd4 (patch)
tree63466b1fe9817d5dd8100a5b207f4d57695bfd8f /.config/nvim/lua/vimrc/plugins.lua
parentc5329fd51b146211821f217dce182afde6ec9451 (diff)
downloaddotfiles-351bb4bf42bac95ce2e42296e96e24e1bc266bd4.tar.gz
dotfiles-351bb4bf42bac95ce2e42296e96e24e1bc266bd4.tar.zst
dotfiles-351bb4bf42bac95ce2e42296e96e24e1bc266bd4.zip
nvim/render-markdown: fix section number
Diffstat (limited to '.config/nvim/lua/vimrc/plugins.lua')
-rw-r--r--.config/nvim/lua/vimrc/plugins.lua5
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,