Skip to content

Commit

Permalink
feat(conceal): visual indentation for ordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom committed Sep 5, 2023
1 parent c0c79be commit fa16c9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit fa16c9d

Please sign in to comment.