Skip to content

Commit

Permalink
fixed mistake in the README autocmd example
Browse files Browse the repository at this point in the history
  • Loading branch information
Gennaro Tedesco committed Feb 17, 2023
1 parent 2506941 commit d2269c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
```
Expand Down

0 comments on commit d2269c2

Please sign in to comment.