aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/markdown-toc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters/markdown-toc.lua')
-rw-r--r--lua/conform/formatters/markdown-toc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/conform/formatters/markdown-toc.lua b/lua/conform/formatters/markdown-toc.lua
index 129d50e..a7a9694 100644
--- a/lua/conform/formatters/markdown-toc.lua
+++ b/lua/conform/formatters/markdown-toc.lua
@@ -6,7 +6,7 @@ return {
},
command = "markdown-toc",
stdin = false,
- args = function(ctx)
+ args = function(self, ctx)
-- use the indentation set in the current buffer, effectively allowing us to
-- use values from .editorconfig
local indent = vim.bo[ctx.buf].expandtab and (" "):rep(vim.bo[ctx.buf].tabstop) or "\t"