diff --git a/lua/neorg/modules/core/concealer/module.lua b/lua/neorg/modules/core/concealer/module.lua index 5e155ff93..550831ee0 100644 --- a/lua/neorg/modules/core/concealer/module.lua +++ b/lua/neorg/modules/core/concealer/module.lua @@ -638,7 +638,7 @@ module.public = { end local line_lengths = {} - local max_len = 0 + local max_len = config.min_width or 0 for row_0b = row_start_0b, row_end_0bin do local len = get_line_length(bufid, row_0b) if len > max_len then @@ -929,6 +929,10 @@ module.config.public = { -- within the code block. width = "fullwidth", + -- When set to a number, the code block background will be at least + -- this many chars wide. Useful in conjunction with `width = "content"` + min_width = nil, + -- Additional padding to apply to either the left or the right. Making -- these values negative is considered undefined behaviour (it is -- likely to work, but it's not officially supported).