Skip to content

Commit

Permalink
feat(concealer): code block background min_width (#1328)
Browse files Browse the repository at this point in the history
closes #1327
  • Loading branch information
benlubas committed Mar 4, 2024
1 parent d537d3c commit efac835
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit efac835

Please sign in to comment.