aboutsummaryrefslogtreecommitdiffstats
path: root/doc/conform.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/conform.txt')
-rw-r--r--doc/conform.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/conform.txt b/doc/conform.txt
index a7aed2a..977a0f0 100644
--- a/doc/conform.txt
+++ b/doc/conform.txt
@@ -61,7 +61,7 @@ OPTIONS *conform-option
-- Return a single string instead of a list to run the command in a shell
args = { "--stdin-from-filename", "$FILENAME" },
-- If the formatter supports range formatting, create the range arguments here
- range_args = function(ctx)
+ range_args = function(self, ctx)
return { "--line-start", ctx.range.start[1], "--line-end", ctx.range["end"][1] }
end,
-- Send file contents to stdin, read new contents from stdout (default true)
@@ -75,7 +75,7 @@ OPTIONS *conform-option
-- When stdin=false, use this template to generate the temporary file that gets formatted
tmpfile_format = ".conform.$RANDOM.$FILENAME",
-- When returns false, the formatter will not be used
- condition = function(ctx)
+ condition = function(self, ctx)
return vim.fs.basename(ctx.filename) ~= "README.md"
end,
-- Exit codes that indicate success (default { 0 })