Skip to content

Commit

Permalink
fix(cookbook): don't use alias for autocmd
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Jun 6, 2022
1 parent c5505f6 commit 2c03277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@ autocmd FileType foo setlocal winbar=
or

```lua
autocmd("User", {
vim.api.nvim_create_autocmd("User", {
pattern = 'HeirlineInitWinbar',
callback = function(args)
local buf = args.buf
Expand Down

0 comments on commit 2c03277

Please sign in to comment.