From bc676cc2f52d6561bc4b54644777d1d9e2b20fc2 Mon Sep 17 00:00:00 2001 From: Seth Daniel Date: Tue, 5 Sep 2023 14:03:23 -0500 Subject: doc: format() takes bufnr, not buf (#25) --- scripts/autoformat_doc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/autoformat_doc.lua') diff --git a/scripts/autoformat_doc.lua b/scripts/autoformat_doc.lua index 1ea8ac4..31cbec7 100644 --- a/scripts/autoformat_doc.lua +++ b/scripts/autoformat_doc.lua @@ -16,7 +16,7 @@ vim.api.nvim_create_autocmd("BufWritePre", { if bufname:match("/node_modules/") then return end - require("conform").format({ timeout_ms = 500, lsp_fallback = true, buf = args.buf }) + require("conform").format({ timeout_ms = 500, lsp_fallback = true, bufnr = args.buf }) end, }) @@ -24,7 +24,7 @@ vim.api.nvim_create_autocmd("BufWritePre", { vim.api.nvim_create_autocmd("BufWritePost", { pattern = "*", callback = function(args) - require("conform").format({ async = true, lsp_fallback = true, buf = args.buf }, function(err) + require("conform").format({ async = true, lsp_fallback = true, bufnr = args.buf }, function(err) if not err then vim.api.nvim_buf_call(args.buf, function() vim.cmd.update() -- cgit v1.2.3-70-g09d2