aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/autocmd.c
Commit message (Collapse)AuthorAge
...
* refactor(api): use FOREACH_ITEM macro in autocmdChristian Clason2022-06-26
|
* feat(api): support pattern array for exec_autocmdsChristian Clason2022-06-26
|
* feat(autocmds): retrieve lua callback (#18642)kylo2522022-06-09
| | | add a new `callback` field to `nvim_get_autocmds`
* refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)dundargoc2022-05-25
|
* fix(autocmds): separate command from desc (#18617)kylo2522022-05-21
|
* feat(api): enable nvim_exec_autocmds to pass arbitrary data (#18613)Gregory Anders2022-05-18
| | | | Add a "data" key to nvim_exec_autocmds that passes arbitrary data (API objects) to autocommand callbacks.
* Merge pull request #18431 from famiu/feat/api/nvim_get_autocmds/group_namebfredl2022-05-05
|\ | | | | feat(api): add `group_name` to `nvim_get_autocmds`
| * feat(api): add `group_name` to `nvim_get_autocmds`Famiu Haque2022-05-05
| |
* | refactor: replace char_u variables and functions with charDundar Goc2022-05-05
|/ | | | Work on https://github.com/neovim/neovim/issues/459
* refactor: replace char_u variables and functions with charDundar Goc2022-05-04
| | | | Work on https://github.com/neovim/neovim/issues/459
* refactor: replace char_u variables and functions with charDundar Goc2022-05-04
| | | | Work on https://github.com/neovim/neovim/issues/459
* fix(coverity): use xstrndup() instead of vim_strsave() (#18363)zeertzjq2022-05-03
|
* docs(api): add example showing necessity to wrap callback function (#18179)Mathias Fußenegger2022-04-20
| | | | | | | Some people ran into issues trying to use `callback = myluafun` because of the event data payload. Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
* docs: typo fixes (#17859)dundargoc2022-04-15
| | | | | | | | | | Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com> Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com> Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: rwxd <rwxd@pm.me> Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
* feat(api)!: pass args table to autocommand callbacksGregory Anders2022-04-08
|
* 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