From d2269c23c2f83857eda2028af0ae0e6373a3151b Mon Sep 17 00:00:00 2001 From: Gennaro Tedesco Date: Fri, 17 Feb 2023 12:11:03 +0100 Subject: [PATCH] fixed mistake in the README autocmd example --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5ac1ac4..3e26cf7 100644 --- a/README.md +++ b/README.md @@ -117,10 +117,11 @@ Why not automatically formatting your `json` files as you open them? Set up the local jqx = vim.api.nvim_create_augroup("Jqx", {}) vim.api.nvim_clear_autocmds({ group = jqx }) vim.api.nvim_create_autocmd("BufWinEnter", { - pattern = {".json", ".yaml"}, + pattern = { "*.json", "*.yaml" }, + desc = "preview json and yaml files on open", group = jqx, callback = function() - vim.cdm.JqxList() + vim.cmd.JqxList() end, }) ```