aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorkylo252 <59826753+kylo252@users.noreply.github.com>2022-06-09 15:18:56 +0200
committerGitHub <noreply@github.com>2022-06-09 07:18:56 -0600
commit3da3cfc864e89a2dca6917183915683373c85af8 (patch)
tree8233b38ee94a3aa3c8cede35dabb9ee8c774993a /runtime
parentc5720c72213810adb75d3277ac645eb6fc8dafa8 (diff)
downloadrneovim-3da3cfc864e89a2dca6917183915683373c85af8.tar.gz
rneovim-3da3cfc864e89a2dca6917183915683373c85af8.tar.bz2
rneovim-3da3cfc864e89a2dca6917183915683373c85af8.zip
feat(autocmds): retrieve lua callback (#18642)
add a new `callback` field to `nvim_get_autocmds`
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt6
1 files changed, 5 insertions, 1 deletions
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