mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
docs: add check_textlock attribute
This commit is contained in:
parent
356319f356
commit
93ba977793
@ -646,6 +646,9 @@ nvim_create_namespace({name}) *nvim_create_namespace()*
|
|||||||
nvim_del_current_line() *nvim_del_current_line()*
|
nvim_del_current_line() *nvim_del_current_line()*
|
||||||
Deletes the current line.
|
Deletes the current line.
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
nvim_del_keymap({mode}, {lhs}) *nvim_del_keymap()*
|
nvim_del_keymap({mode}, {lhs}) *nvim_del_keymap()*
|
||||||
Unmaps a global |mapping| for the given mode.
|
Unmaps a global |mapping| for the given mode.
|
||||||
|
|
||||||
@ -755,6 +758,15 @@ nvim_feedkeys({keys}, {mode}, {escape_csi}) *nvim_feedkeys()*
|
|||||||
feedkeys()
|
feedkeys()
|
||||||
vim_strsave_escape_csi
|
vim_strsave_escape_csi
|
||||||
|
|
||||||
|
nvim_get_all_options_info() *nvim_get_all_options_info()*
|
||||||
|
Gets the option information for all options.
|
||||||
|
|
||||||
|
The dictionary has the full option names as keys and option
|
||||||
|
metadata dictionaries as detailed at |nvim_get_option_info|.
|
||||||
|
|
||||||
|
Return: ~
|
||||||
|
dictionary of all options
|
||||||
|
|
||||||
nvim_get_api_info() *nvim_get_api_info()*
|
nvim_get_api_info() *nvim_get_api_info()*
|
||||||
Returns a 2-tuple (Array), where item 0 is the current channel
|
Returns a 2-tuple (Array), where item 0 is the current channel
|
||||||
id and item 1 is the |api-metadata| map (Dictionary).
|
id and item 1 is the |api-metadata| map (Dictionary).
|
||||||
@ -937,22 +949,18 @@ nvim_get_option_info({name}) *nvim_get_option_info()*
|
|||||||
Gets the option information for one option
|
Gets the option information for one option
|
||||||
|
|
||||||
Resulting dictionary has keys:
|
Resulting dictionary has keys:
|
||||||
• name (string): Name of the option
|
• name: Name of the option (like 'filetype')
|
||||||
• shortname (shortname): Shortened name of the option
|
• shortname: Shortened name of the option (like 'ft')
|
||||||
• type (string): Name of the type of option
|
• type: type of option ("string", "integer" or "boolean")
|
||||||
• default (Any): The default value for the option
|
• default: The default value for the option
|
||||||
|
• was_set: Whether the option was set.
|
||||||
Script-Related Keys:
|
• last_set_sid: Last set script id (if any)
|
||||||
• was_set (bool): Whether the option was set.
|
• last_set_linenr: line number where option was set
|
||||||
• last_set_sid (int): Last set script id
|
• last_set_chan: Channel where option was set (0 for local)
|
||||||
• last_set_linenr (int): Last set script id, -1 if invalid.
|
• scope: one of "global", "win", or "buf"
|
||||||
• last_set_lchan (int): Last set script id, -1 if invalid.
|
• global_local: whether win or buf option has a global value
|
||||||
|
• commalist: List of comma separated values
|
||||||
Flag-Related Keys:
|
• flaglist: List of single char flags
|
||||||
• win (bool): Window-local option
|
|
||||||
• buf (bool): Buffer-local option
|
|
||||||
• global_local (bool): Global or Buffer local option
|
|
||||||
• flaglist (bool): List of single char flags
|
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{name} Option name
|
{name} Option name
|
||||||
@ -960,12 +968,6 @@ nvim_get_option_info({name}) *nvim_get_option_info()*
|
|||||||
Return: ~
|
Return: ~
|
||||||
Option Information
|
Option Information
|
||||||
|
|
||||||
nvim_get_options_info() *nvim_get_options_info()*
|
|
||||||
Gets the option information for all options.
|
|
||||||
|
|
||||||
Return: ~
|
|
||||||
Map<option_name, option_info>
|
|
||||||
|
|
||||||
nvim_get_proc({pid}) *nvim_get_proc()*
|
nvim_get_proc({pid}) *nvim_get_proc()*
|
||||||
Gets info describing process `pid` .
|
Gets info describing process `pid` .
|
||||||
|
|
||||||
@ -1174,6 +1176,9 @@ nvim_open_win({buffer}, {enter}, {config}) *nvim_open_win()*
|
|||||||
{relative='win', width=12, height=3, bufpos={100,10}})
|
{relative='win', width=12, height=3, bufpos={100,10}})
|
||||||
<
|
<
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{buffer} Buffer to display, or 0 for current buffer
|
{buffer} Buffer to display, or 0 for current buffer
|
||||||
{enter} Enter the window (make it the current window)
|
{enter} Enter the window (make it the current window)
|
||||||
@ -1352,6 +1357,9 @@ nvim_paste({data}, {crlf}, {phase}) *nvim_paste()*
|
|||||||
calls are ignored ("drained") until the next paste is
|
calls are ignored ("drained") until the next paste is
|
||||||
initiated (phase 1 or -1).
|
initiated (phase 1 or -1).
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{data} Multiline input. May be binary (containing NUL
|
{data} Multiline input. May be binary (containing NUL
|
||||||
bytes).
|
bytes).
|
||||||
@ -1372,6 +1380,9 @@ nvim_put({lines}, {type}, {after}, {follow}) *nvim_put()*
|
|||||||
|
|
||||||
Compare |:put| and |p| which are always linewise.
|
Compare |:put| and |p| which are always linewise.
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{lines} |readfile()|-style list of lines.
|
{lines} |readfile()|-style list of lines.
|
||||||
|channel-lines|
|
|channel-lines|
|
||||||
@ -1489,6 +1500,9 @@ nvim_set_client_info({name}, {version}, {type}, {methods}, {attributes})
|
|||||||
nvim_set_current_buf({buffer}) *nvim_set_current_buf()*
|
nvim_set_current_buf({buffer}) *nvim_set_current_buf()*
|
||||||
Sets the current buffer.
|
Sets the current buffer.
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{buffer} Buffer handle
|
{buffer} Buffer handle
|
||||||
|
|
||||||
@ -1501,18 +1515,27 @@ nvim_set_current_dir({dir}) *nvim_set_current_dir()*
|
|||||||
nvim_set_current_line({line}) *nvim_set_current_line()*
|
nvim_set_current_line({line}) *nvim_set_current_line()*
|
||||||
Sets the current line.
|
Sets the current line.
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{line} Line contents
|
{line} Line contents
|
||||||
|
|
||||||
nvim_set_current_tabpage({tabpage}) *nvim_set_current_tabpage()*
|
nvim_set_current_tabpage({tabpage}) *nvim_set_current_tabpage()*
|
||||||
Sets the current tabpage.
|
Sets the current tabpage.
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{tabpage} Tabpage handle
|
{tabpage} Tabpage handle
|
||||||
|
|
||||||
nvim_set_current_win({window}) *nvim_set_current_win()*
|
nvim_set_current_win({window}) *nvim_set_current_win()*
|
||||||
Sets the current window.
|
Sets the current window.
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{window} Window handle
|
{window} Window handle
|
||||||
|
|
||||||
@ -1859,6 +1882,9 @@ nvim_buf_del_var({buffer}, {name}) *nvim_buf_del_var()*
|
|||||||
nvim_buf_delete({buffer}, {opts}) *nvim_buf_delete()*
|
nvim_buf_delete({buffer}, {opts}) *nvim_buf_delete()*
|
||||||
Deletes the buffer. See |:bwipeout|
|
Deletes the buffer. See |:bwipeout|
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{buffer} Buffer handle, or 0 for current buffer
|
{buffer} Buffer handle, or 0 for current buffer
|
||||||
{opts} Optional parameters. Keys:
|
{opts} Optional parameters. Keys:
|
||||||
@ -2155,6 +2181,9 @@ nvim_buf_set_lines({buffer}, {start}, {end}, {strict_indexing}, {replacement})
|
|||||||
Out-of-bounds indices are clamped to the nearest valid value,
|
Out-of-bounds indices are clamped to the nearest valid value,
|
||||||
unless `strict_indexing` is set.
|
unless `strict_indexing` is set.
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{buffer} Buffer handle, or 0 for current buffer
|
{buffer} Buffer handle, or 0 for current buffer
|
||||||
{start} First line index
|
{start} First line index
|
||||||
@ -2232,6 +2261,9 @@ Window Functions *api-window*
|
|||||||
nvim_win_close({window}, {force}) *nvim_win_close()*
|
nvim_win_close({window}, {force}) *nvim_win_close()*
|
||||||
Closes the window (like |:close| with a |window-ID|).
|
Closes the window (like |:close| with a |window-ID|).
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{window} Window handle, or 0 for current window
|
{window} Window handle, or 0 for current window
|
||||||
{force} Behave like `:close!` The last window of a
|
{force} Behave like `:close!` The last window of a
|
||||||
@ -2357,6 +2389,9 @@ nvim_win_is_valid({window}) *nvim_win_is_valid()*
|
|||||||
nvim_win_set_buf({window}, {buffer}) *nvim_win_set_buf()*
|
nvim_win_set_buf({window}, {buffer}) *nvim_win_set_buf()*
|
||||||
Sets the current buffer in a window, without side-effects
|
Sets the current buffer in a window, without side-effects
|
||||||
|
|
||||||
|
Attributes: ~
|
||||||
|
not allowed when |textlock| is active
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{window} Window handle, or 0 for current window
|
{window} Window handle, or 0 for current window
|
||||||
{buffer} Buffer handle
|
{buffer} Buffer handle
|
||||||
|
@ -186,6 +186,7 @@ param_exclude = (
|
|||||||
# Annotations are displayed as line items after API function descriptions.
|
# Annotations are displayed as line items after API function descriptions.
|
||||||
annotation_map = {
|
annotation_map = {
|
||||||
'FUNC_API_FAST': '{fast}',
|
'FUNC_API_FAST': '{fast}',
|
||||||
|
'FUNC_API_CHECK_TEXTLOCK': 'not allowed when |textlock| is active',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user