From 076ac4d7747bde487ed57ac96d0e1575a3bf720b Mon Sep 17 00:00:00 2001 From: Seth Daniel Date: Wed, 6 Sep 2023 16:57:57 -0500 Subject: doc: format() takes bufnr, not buf (#28) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') 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, }) ``` -- cgit v1.2.3-70-g09d2