mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-19 12:04:13 +00:00
docs: reformat autocmds.md
This commit is contained in:
parent
a37bce1194
commit
d8a4fa62bd
1 changed files with 10 additions and 10 deletions
|
|
@ -39,7 +39,7 @@ Autocommands (`autocmd`) trigger actions based on events happening within Neovim
|
|||
with the following options:
|
||||
|
||||
| Option | Type | Default | Description | Example |
|
||||
| :--------- | :-------------------- | :------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------- |
|
||||
| :--------- | :-------------------- | :------ | :---------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------- |
|
||||
| `enable` | `bool` | `true` | Enables or disables this autocommand definition. | `true` |
|
||||
| `event` | `nullOr (listOf str)` | `null` | **Required.** List of Neovim events that trigger this autocommand (e.g., `BufWritePre`, `FileType`). | `[ "BufWritePre" ]` |
|
||||
| `pattern` | `nullOr (listOf str)` | `null` | List of file patterns (globs) to match against (e.g., `*.py`, `*`). If `null`, matches all files for the given event. | `[ "*.lua", "*.nix" ]` |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue