Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: configurable orderd list icons #1548

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ local function format_ordered_icon(pattern, index)
return gen(index)
end

for char_one, number_table in pairs(ordered_icon_table) do
for char_one, number_table in pairs(module.config.public.ordered_icons) do
local l, r = pattern:find(char_one:find("%w") and "%f[%w]" .. char_one .. "%f[%W]" or char_one)
if l then
gen = function(index_)
Expand Down Expand Up @@ -684,6 +684,12 @@ module.config.public = {
-- When set to `never`, Neorg will not do anything.
init_open_folds = "auto",

-- Provide custom ordered icons for ordered lists.
-- - keys are a string matched against the first character of the values in `icons.ordered.icons`
-- - value are either a list of string icons to use (one for each index), or a function that
-- takes the index and returns the string value
ordered_icons = ordered_icon_table,

-- Configuration for icons.
--
-- This table contains the full configuration set for each icon, including
Expand Down
Loading