mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
![github-actions[bot]](/assets/img/avatar_default.png)
docs(api): pattern is not expanded for autocommands
Problem: Unlike `:autocmd`, `nvim_create_autocommand()` does not expand
environment variables in the `pattern`, which is unexpected.
Solution: Add a note to the documentation explaining this and suggesting
using `expand()` explicitly.
(cherry picked from commit eeaf943ca3
)
Co-authored-by: Christian Clason <c.clason@uni-graz.at>