aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/reference.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/reference.md b/doc/reference.md
index 25496863..c16f2e0e 100644
--- a/doc/reference.md
+++ b/doc/reference.md
@@ -390,6 +390,9 @@ to events on the associated object.
Registers the provided `{handler}`, to be called every time the provided
`{event}` is dispatched.
+**Note**: The provided `{handler}` may be executed outside the main Neovim loop (`:h vim.in_fast_event()`), where most of
+the Neovim API is disabled.
+
### `EventEmitter:once({event, handler})`
**Parameters:**
@@ -400,6 +403,9 @@ Registers the provided `{handler}`, to be called every time the provided
Registers the provided `{handler}`, to be called only once - the next time the
provided `{event}` is dispatched.
+**Note**: The provided `{handler}` may be executed outside the main Neovim loop (`:h vim.in_fast_event()`), where most of
+the Neovim API is disabled.
+
### `EventEmitter:off({event}, {handler})`
**Parameters:**