aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/autocmd.c
Commit message (Collapse)AuthorAge
* Merge pull request #17938 from ggandor/autocmd-api-namesbfredl2022-04-01
|\ | | | | refactor(api)!: use singular/plural consistently in the autocmd API
| * refactor(api)!: use singular/plural consistently in the autocmd APIGyörgy Andorka2022-03-31
| |
* | Merge pull request #17929 from lewis6991/autocmdbfredl2022-03-31
|\ \ | |/ |/| fix(api): improve autocmd error handling
| * fix(api): improve autocmd error handlingLewis Russell2022-03-31
| | | | | | | | | | - nvim_del_augroup_* now works with pcall - nvim_del_autocmd now errors for invalid ids
* | feat(api): nvim_clear_autocmdTJ DeVries2022-03-31
|/ | | | Co-authored-by: Christian Clason <christian.clason@uni-due.de>
* refactor!: rename nvim_do_autocmd to nvim_exec_autocmd (#17854)Javier Lopez2022-03-26
| | | according to established code standards (`:h dev-api`)
* docs(api): fix wrong documentation of `nvim_create_autocmd` (#17870)かわえもん2022-03-26
| | | also add doc changes from typofix PR
* docs(api): improve autocommand docs (#17545)Javier Lopez2022-03-25
| | | [skip ci]
* refactor(uncrustify): format all c filesDundar Göc2022-03-10
|
* feat(api): autocmd `group` can be either name or id (#17559)Dhruv Manilawala2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | * 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>
* feat(api): add 'buffer' argument to nvim_get_autocmds (#17594)Gregory Anders2022-03-06
| | | | | This enables retrieving autocommands defined in the given buffers. Under the hood this simply translates the buffer numbers into '<buffer=%d>' patterns.
* refactor(PVS/V547): aucmd.type == CALLABLE_NONE is always falsezeertzjq2022-03-02
|
* refactor(PVS/V560): ap == NULL is always falsezeertzjq2022-03-02
|
* chore(PVS): add PVS header to api/autocmd.czeertzjq2022-03-02
|
* fix(api): include event in get_autocmds (#17553)Christian Clason2022-03-01
|
* feat(lua): add missing changes to autocmds lost in the rebaseTJ DeVries2022-02-28
| | | | Note: some of these changes are breaking, like change of API signatures
* feat(lua): add api and lua autocmdsTJ DeVries2022-02-27