| Commit message (Collapse) | Author | Age |
|\
| |
| | |
refactor(api)!: use singular/plural consistently in the autocmd API
|
| | |
|
|\ \
| |/
|/| |
fix(api): improve autocmd error handling
|
| |
| |
| |
| |
| | |
- nvim_del_augroup_* now works with pcall
- nvim_del_autocmd now errors for invalid ids
|
|/
|
|
| |
Co-authored-by: Christian Clason <christian.clason@uni-due.de>
|
|
|
| |
according to established code standards (`:h dev-api`)
|
|
|
| |
also add doc changes from typofix PR
|
|
|
| |
[skip ci]
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
| |
This enables retrieving autocommands defined in the given buffers. Under
the hood this simply translates the buffer numbers into '<buffer=%d>'
patterns.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Note: some of these changes are breaking, like change of API signatures
|
|
|