aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Daniel <seth@sethdaniel.org>2023-09-06 16:57:57 -0500
committerGitHub <noreply@github.com>2023-09-06 14:57:57 -0700
commit076ac4d7747bde487ed57ac96d0e1575a3bf720b (patch)
tree819e976339992d7f12975b7dd704121ae28e7bcf
parent99dd830ffbe981b3457ed6c17d3dcd34892ddcca (diff)
doc: format() takes bufnr, not buf (#28)
-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,
})
```