diff options
author | Seth Daniel <seth@sethdaniel.org> | 2023-09-05 14:03:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 12:03:23 -0700 |
commit | bc676cc2f52d6561bc4b54644777d1d9e2b20fc2 (patch) | |
tree | 958ba9718582def3e936263d65d1c3118e8b869b /scripts/autoformat_doc.lua | |
parent | 74754d6f2aab7a4b27e7df4916bb903aba223b0c (diff) |
doc: format() takes bufnr, not buf (#25)
Diffstat (limited to 'scripts/autoformat_doc.lua')
-rw-r--r-- | scripts/autoformat_doc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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() |