You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`enable`|`bool`|`true`| Enables or disables this autocommand definition. |`true`|
44
-
|`event`|`nullOr (listOf str)`|`null`|**Required.** List of Neovim events that trigger this autocommand (e.g., `BufWritePre`, `FileType`). |`[ "BufWritePre" ]`|
45
-
|`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" ]`|
41
+
| Option | Type | Default | Description | Example|
|`enable`|`bool`|`true`| Enables or disables this autocommand definition. |`true`|
44
+
|`event`|`nullOr (listOf str)`|`null`|**Required.** List of Neovim events that trigger this autocommand (e.g., `BufWritePre`, `FileType`). |`[ "BufWritePre" ]`|
45
+
|`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" ]`|
46
46
|`callback`|`nullOr luaInline`|`null`| A Lua function to execute when the event triggers. Use `lib.generators.mkLuaInline`. **Cannot be used with `command`.**|`lib.generators.mkLuaInline "function() print('File saved!') end"`|
47
-
|`command`|`nullOr str`|`null`| A Vimscript command to execute when the event triggers. **Cannot be used with `callback`.**|`"echo 'File saved!'"`|
48
-
|`group`|`nullOr str`|`null`| The name of an `augroup` (defined in `vim.augroups`) to associate this autocommand with. |`"MyCustomAuGroup"`|
49
-
|`desc`|`nullOr str`|`null`| A description for the autocommand (useful for introspection). |`"Format buffer on save"`|
50
-
|`once`|`bool`|`false`| If `true`, the autocommand runs only once and then automatically removes itself. |`false`|
51
-
|`nested`|`bool`|`false`| If `true`, allows this autocommand to trigger other autocommands. |`false`|
47
+
|`command`|`nullOr str`|`null`| A Vimscript command to execute when the event triggers. **Cannot be used with `callback`.**|`"echo 'File saved!'"`|
48
+
|`group`|`nullOr str`|`null`| The name of an `augroup` (defined in `vim.augroups`) to associate this autocommand with. |`"MyCustomAuGroup"`|
49
+
|`desc`|`nullOr str`|`null`| A description for the autocommand (useful for introspection). |`"Format buffer on save"`|
50
+
|`once`|`bool`|`false`| If `true`, the autocommand runs only once and then automatically removes itself. |`false`|
51
+
|`nested`|`bool`|`false`| If `true`, allows this autocommand to trigger other autocommands. |`false`|
0 commit comments