aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorstvhuang <stvhuang.me@gmail.com>2023-08-27 12:09:35 +0800
committerGitHub <noreply@github.com>2023-08-26 21:09:35 -0700
commitf86cd7f475d5b0d3ab0b0b57b8edaa06ac911e0b (patch)
treeb968f4cba3508a4152f99383a5a705b5deac36f2 /README.md
parent500d24dc1a2447a3c8f3f4f756f40bd27ff0b283 (diff)
doc: fix example code in README (#4)
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index aef8065..2f3225c 100644
--- a/README.md
+++ b/README.md
@@ -226,7 +226,7 @@ require("conform").setup({
-- A function the calculates the directory to run the command in
cwd = require("conform.util").root_file({ ".editorconfig", "package.json" }),
-- When cwd is not found, don't run the formatter (default false)
- require_cwd = true
+ require_cwd = true,
-- When returns false, the formatter will not be used
condition = function(ctx)
return vim.fs.basename(ctx.filename) ~= "README.md"