docs(api): tweak data arg for nvim_create_autocmd (#22008)

Fixes #21964
This commit is contained in:
Lewis Russell
2023-01-27 11:24:20 +00:00
committed by GitHub
parent 82fb6ce487
commit aec4b476c5
2 changed files with 2 additions and 2 deletions

View File

@@ -3281,7 +3281,7 @@ nvim_create_autocmd({event}, {*opts}) *nvim_create_autocmd()*
• match: (string) expanded value of |<amatch>| • match: (string) expanded value of |<amatch>|
• buf: (number) expanded value of |<abuf>| • buf: (number) expanded value of |<abuf>|
• file: (string) expanded value of |<afile>| • file: (string) expanded value of |<afile>|
• data: (any) arbitrary data passed to • data: (any) arbitrary data passed from
|nvim_exec_autocmds()| |nvim_exec_autocmds()|
• command (string) optional: Vim command to execute on event. • command (string) optional: Vim command to execute on event.

View File

@@ -404,7 +404,7 @@ cleanup:
/// - match: (string) expanded value of |<amatch>| /// - match: (string) expanded value of |<amatch>|
/// - buf: (number) expanded value of |<abuf>| /// - buf: (number) expanded value of |<abuf>|
/// - file: (string) expanded value of |<afile>| /// - file: (string) expanded value of |<afile>|
/// - data: (any) arbitrary data passed to |nvim_exec_autocmds()| /// - data: (any) arbitrary data passed from |nvim_exec_autocmds()|
/// - command (string) optional: Vim command to execute on event. Cannot be used with /// - command (string) optional: Vim command to execute on event. Cannot be used with
/// {callback} /// {callback}
/// - once (boolean) optional: defaults to false. Run the autocommand /// - once (boolean) optional: defaults to false. Run the autocommand