@@ -254,19 +254,6 @@ The idea is "versionless evolution", in the words of Rich Hickey:
254254- Relaxing a requirement should be a compatible change.
255255- Strengthening a promise should be a compatible change.
256256
257- ==============================================================================
258- Global events *api-global-events*
259-
260- When a client invokes an API request as an async notification, it is not
261- possible for Nvim to send an error response. Instead, in case of error, the
262- following notification will be sent to the client:
263-
264- *nvim_error_event*
265- nvim_error_event[{type} , {message} ]
266-
267- {type} is a numeric id as defined by `api_info ().error_types` , and {message} is
268- a string with the error message.
269-
270257==============================================================================
271258Buffer update events *api-buffer-updates*
272259
@@ -553,6 +540,38 @@ Extmark positions changed by an edit will be restored on undo/redo. Creating
553540and deleting extmarks is not a buffer change, thus new undo states are not
554541created for extmark changes.
555542
543+ ==============================================================================
544+ Global Events *api-events*
545+
546+ nvim_error_event({type} , {msg} ) *nvim_error_event*
547+ Emitted on the client channel if an async API request responds with an
548+ error.
549+
550+ Attributes: ~
551+ | RPC | only
552+
553+ Parameters: ~
554+ • {type} (`integer` ) Error type id as defined by
555+ `api_info ().error_types` .
556+ • {msg} (`string ` ) Error message.
557+
558+ nvim_ui_term_event({event} , {value} ) *nvim_ui_term_event*
559+ Emitted by the TUI client to signal when a host-terminal event occurred.
560+
561+ Supports these events:
562+ • "termresponse": The host-terminal sent a DA1, OSC, DCS, or APC response
563+ sequence to Nvim. The payload is the received response. Sets
564+ | v:termresponse | and fires | TermResponse | .
565+
566+ Attributes: ~
567+ | RPC | only
568+ Since: 0.10.0
569+
570+ Parameters: ~
571+ • {event} (`string ` ) Event name
572+ • {value} (`any` ) Event payload
573+
574+
556575==============================================================================
557576Global Functions *api-global*
558577
@@ -1385,9 +1404,9 @@ nvim_set_client_info({name}, {version}, {type}, {methods}, {attributes})
13851404 debugging and orchestration. (Note: Something is better than nothing!
13861405 Fields are optional, but at least set `name` .)
13871406
1388- Can be called more than once; the caller should merge old info if
1389- appropriate. Example: library first identifies the channel, then a plugin
1390- using that library later identifies itself.
1407+ Can be called more than once; caller should merge old info if appropriate.
1408+ Example: a library first identifies the channel, then a plugin using that
1409+ library later identifies itself.
13911410
13921411 Attributes: ~
13931412 | RPC | only
@@ -3324,8 +3343,7 @@ nvim_set_decoration_provider({ns_id}, {opts})
33243343 • on_win: called when starting to redraw a specific window. >
33253344 ["win", winid, bufnr, toprow, botrow]
33263345<
3327- • on_line: called for each buffer line being redrawn. (The
3328- interaction with fold lines is subject to change) >
3346+ • on_line: (deprecated, use on_range instead) >
33293347 ["line", winid, bufnr, row]
33303348<
33313349 • on_range: called for each buffer range being redrawn. Range
@@ -3661,22 +3679,6 @@ nvim_ui_set_option({name}, {value}) *nvim_ui_set_option()*
36613679 • {name} (`string ` )
36623680 • {value} (`any` )
36633681
3664- nvim_ui_term_event({event} , {value} ) *nvim_ui_term_event()*
3665- Tells Nvim when a host-terminal event occurred.
3666-
3667- Supports these events:
3668- • "termresponse": The host-terminal sent a DA1, OSC, DCS, or APC response
3669- sequence to Nvim. The payload is the received response. Sets
3670- | v:termresponse | and fires | TermResponse | .
3671-
3672- Attributes: ~
3673- | RPC | only
3674- Since: 0.10.0
3675-
3676- Parameters: ~
3677- • {event} (`string ` ) Event name
3678- • {value} (`any` ) Event payload
3679-
36803682nvim_ui_try_resize({width} , {height} ) *nvim_ui_try_resize()*
36813683
36823684 Attributes: ~
0 commit comments