diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-03-06 12:35:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 12:35:14 -0700 |
commit | 92349b1db0039aac3a43089d0aade2437164505c (patch) | |
tree | 8917d542e9fb66f95118d472997419c8ed0a2f1c /runtime | |
parent | 3800615da9eaf9e8b26d9040c882c74084d688e4 (diff) | |
download | rneovim-92349b1db0039aac3a43089d0aade2437164505c.tar.gz rneovim-92349b1db0039aac3a43089d0aade2437164505c.tar.bz2 rneovim-92349b1db0039aac3a43089d0aade2437164505c.zip |
feat(api): add 'buffer' argument to nvim_get_autocmds (#17594)
This enables retrieving autocommands defined in the given buffers. Under
the hood this simply translates the buffer numbers into '<buffer=%d>'
patterns.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/api.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index fe5f9eaf35..73536d174a 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -3226,7 +3226,11 @@ nvim_get_autocmds({*opts}) *nvim_get_autocmds()* against • group (string): Name of group to match against • pattern: Pattern or list of patterns to match - against + against. 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: ~ A list of autocmds that match |