Files
neovim/runtime/doc
Dhruv Manilawala 2783f4cc4a feat(api): autocmd group can be either name or id (#17559)
* feat(api): `group` can be either string or int

This affects the following API functions:
- `vim.api.nvim_create_autocmd`
- `vim.api.nvim_get_autocmds`
- `vim.api.nvim_do_autocmd`

closes #17552

* refactor: add two maps for fast lookups

* fix: delete augroup info from id->name map

When in "stupid_legacy_mode", the value in name->id map would be updated
to `AUGROUP_DELETED`, but the entry would still remain in id->name. This
would create a problem in `augroup_name` function which would return the
name of the augroup instead of `--DELETED--`.

The id->name map is only used for fast loopup in `augroup_name` function
so there's no point in keeping the entry of deleted augroup in it.

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2022-03-07 23:15:43 -05:00
..
2021-09-10 08:48:27 +02:00
2022-02-27 11:56:30 +01:00
2022-01-04 11:07:40 -07:00
2022-02-27 11:56:30 +01:00
2021-09-23 06:59:30 -07:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-01-23 18:38:41 +01:00
2022-02-27 11:56:30 +01:00
2018-10-29 09:32:29 +01:00
2021-09-10 08:48:27 +02:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2018-10-29 09:55:07 +01:00
2022-01-11 14:14:17 +01:00
2022-02-27 11:56:30 +01:00
2022-01-31 18:09:51 +01:00
2022-02-27 11:56:30 +01:00
2022-01-21 18:08:56 +08:00
2021-09-09 00:37:59 -07:00
2022-01-04 11:07:40 -07:00
2022-02-13 13:44:51 +00:00
2018-08-25 15:25:49 +02:00
2021-04-28 21:29:57 -04:00
2022-01-11 14:14:17 +01:00
2022-02-27 11:56:30 +01:00
2019-03-26 19:55:33 +01:00
2022-02-27 11:56:30 +01:00
2018-10-29 09:55:07 +01:00
2022-01-29 23:15:22 +00:00
2022-02-27 11:56:30 +01:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2015-08-15 15:25:30 -03:00
2021-11-17 10:02:59 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2021-04-29 21:08:09 -04:00
2019-03-26 19:55:33 +01:00
2021-09-10 08:48:27 +02:00
2019-08-02 16:20:22 +02:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-02-27 11:56:30 +01:00
2022-01-29 23:15:22 +00:00
2022-02-27 11:56:30 +01:00
2021-04-27 09:21:31 -04:00
2022-02-27 11:56:30 +01:00
2021-04-27 09:21:30 -04:00
2021-05-02 13:00:38 -04:00
2021-05-01 23:19:57 -04:00
2022-02-27 11:56:30 +01:00
2019-08-02 16:20:22 +02:00
2021-09-08 07:24:12 -07:00
2021-09-08 07:24:12 -07:00
2021-05-01 22:29:02 -04:00
2021-05-02 12:53:49 -04:00
2021-11-22 10:53:57 +01:00
2021-05-01 22:29:03 -04:00
2021-04-27 09:21:33 -04:00
2018-10-29 10:01:44 +01:00
2021-04-29 09:27:19 -04:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2021-04-29 20:42:16 -04:00
2021-04-29 20:42:16 -04:00
2018-10-29 10:01:44 +01:00
2021-04-29 20:42:16 -04:00
2019-03-26 19:55:33 +01:00
2021-04-27 09:21:34 -04:00
2021-05-01 23:19:57 -04:00
2022-02-27 11:56:30 +01:00