diff options
author | Kevin Nitro <trannguyenthaibinh46@gmail.com> | 2024-07-16 01:40:42 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-15 11:40:42 -0700 |
commit | 4f476ba2247bfa5fe46ad52d934536d271d75431 (patch) | |
tree | a22c3c6ae41f43a3528fec5f6bdc46b96511dfb7 /lua/conform/formatters/doctoc.lua | |
parent | cd75be867f2331b22905f47d28c0c270a69466aa (diff) |
feat: support doctoc (#489)
* feat: support doctoc
* doc: shorten description
---------
Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
Diffstat (limited to 'lua/conform/formatters/doctoc.lua')
-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", + }, +} |