aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 091cdf0..f4657cb 100644
--- a/README.md
+++ b/README.md
@@ -127,7 +127,7 @@ Then you can use `conform.format()` just like you would `vim.lsp.buf.format()`.
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = "*",
callback = function(args)
- require("conform").format({ buf = args.buf })
+ require("conform").format({ bufnr = args.buf })
end,
})
```