Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/content/docs/reference/autocmds.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ Neovim autocmd events, check the help page with `:h autocmd-events`.
- `AstroUpdateCompleted`: AstroNvim provides a custom command for easily
updating all plugins and packages using `:AstroUpdate`.
`AstroUpdateCompleted` is triggered after all of the available updates have
been applied.
been applied. Useful for headless updates:
```bash
nvim --headless -c "autocmd User AstroUpdateCompleted quitall" -c "AstroUpdate"
```

- `AstroRenameFilePre`: AstroCore provides a `rename_file` method for easily
renaming files. `AstroRenameFilePre` is triggered immediately prior to
Expand Down