diff options
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r-- | lua/conform/formatters/doctoc.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/conform/formatters/doctoc.lua b/lua/conform/formatters/doctoc.lua new file mode 100644 index 0000000..c27d11d --- /dev/null +++ b/lua/conform/formatters/doctoc.lua @@ -0,0 +1,12 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/thlorenz/doctoc", + description = "Generates table of contents for markdown files inside local git repository.", + }, + command = "doctoc", + stdin = false, + args = { + "$FILENAME", + }, +} |