diff options
author | Seth Daniel <seth@sethdaniel.org> | 2023-09-06 16:57:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 14:57:57 -0700 |
commit | 076ac4d7747bde487ed57ac96d0e1575a3bf720b (patch) | |
tree | 819e976339992d7f12975b7dd704121ae28e7bcf | |
parent | 99dd830ffbe981b3457ed6c17d3dcd34892ddcca (diff) |
doc: format() takes bufnr, not buf (#28)
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, }) ``` |