From fa16c9d83e52d2504e78432b45de963671212dae Mon Sep 17 00:00:00 2001 From: champignoom Date: Wed, 6 Sep 2023 00:08:03 +0800 Subject: [PATCH] feat(conceal): visual indentation for ordered list --- lua/neorg/modules/core/concealer/module.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/neorg/modules/core/concealer/module.lua b/lua/neorg/modules/core/concealer/module.lua index 48a968c6e..2543eb23c 100644 --- a/lua/neorg/modules/core/concealer/module.lua +++ b/lua/neorg/modules/core/concealer/module.lua @@ -461,7 +461,9 @@ module.public = { local generator = table_get_default_last(config.generators, len) local format = table_get_default_last(config.formatters, len) - local text = (" "):rep(len - 1) .. string.format(format, generator(index)) + assert(has_anticonceal) + local visual_indent = module.config.public.visual_indent + local text = (" "):rep(visual_indent*(len-1)) .. string.format(format, generator(index)) local highlight = config.highlights and table_get_default_last(config.highlights, len)