docs(autocmds): re-add buffer param to docstring (#20204)

This commit is contained in:
kylo252
2022-09-16 09:18:42 +02:00
committed by GitHub
parent 9ec4b20be6
commit 0f93aa12fd
2 changed files with 7 additions and 1 deletions

View File

@@ -3378,7 +3378,10 @@ nvim_get_autocmds({*opts}) *nvim_get_autocmds()*
• event (string|array): event or events to match against • event (string|array): event or events to match against
|autocmd-events|. |autocmd-events|.
• pattern (string|array): pattern or patterns to match against • pattern (string|array): pattern or patterns to match against
|autocmd-pattern|. |autocmd-pattern|. Cannot be used with {buffer}
• buffer: Buffer number or list of buffer numbers for buffer
local autocommands |autocmd-buflocal|. Cannot be used with
{pattern}
Return: ~ Return: ~
Array of autocommands matching the criteria, with each item containing Array of autocommands matching the criteria, with each item containing

View File

@@ -59,6 +59,9 @@ static int64_t next_autocmd_id = 1;
/// - group (string|integer): the autocommand group name or id to match against. /// - group (string|integer): the autocommand group name or id to match against.
/// - event (string|array): event or events to match against |autocmd-events|. /// - event (string|array): event or events to match against |autocmd-events|.
/// - pattern (string|array): pattern or patterns to match against |autocmd-pattern|. /// - pattern (string|array): pattern or patterns to match against |autocmd-pattern|.
/// Cannot be used with {buffer}
/// - buffer: Buffer number or list of buffer numbers for buffer local autocommands
/// |autocmd-buflocal|. Cannot be used with {pattern}
/// @return Array of autocommands matching the criteria, with each item /// @return Array of autocommands matching the criteria, with each item
/// containing the following fields: /// containing the following fields:
/// - id (number): the autocommand id (only when defined with the API). /// - id (number): the autocommand id (only when defined with the API).