From 3da3cfc864e89a2dca6917183915683373c85af8 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Thu, 9 Jun 2022 15:18:56 +0200 Subject: feat(autocmds): retrieve lua callback (#18642) add a new `callback` field to `nvim_get_autocmds` --- runtime/doc/api.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 2c75acbe1f..e47c5cbd6f 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -3610,7 +3610,11 @@ nvim_get_autocmds({*opts}) *nvim_get_autocmds()* • group_name (string): the autocommand group name. • desc (string): the autocommand description. • event (string): the autocommand event. - • command (string): the autocommand command. + • command (string): the autocommand command. Note: this + will be empty if a callback is set. + • callback (function|string|nil): Lua function or name of + a Vim script function which is executed when this + autocommand is triggered. • once (boolean): whether the autocommand is only run once. • pattern (string): the autocommand pattern. If the -- cgit