mirror of
https://github.com/neovim/neovim.git
synced 2025-12-21 13:55:36 +00:00
docs: fix typos (#19798)
Co-authored-by: adrian5 <adrian5@users.noreply.github.com> Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
@@ -1029,7 +1029,7 @@ chanclose({id} [, {stream}]) *chanclose()*
|
|||||||
are closed. If the channel is a pty, this will then close the
|
are closed. If the channel is a pty, this will then close the
|
||||||
pty master, sending SIGHUP to the job process.
|
pty master, sending SIGHUP to the job process.
|
||||||
For a socket, there is only one stream, and {stream} should be
|
For a socket, there is only one stream, and {stream} should be
|
||||||
ommited.
|
omitted.
|
||||||
|
|
||||||
chansend({id}, {data}) *chansend()*
|
chansend({id}, {data}) *chansend()*
|
||||||
Send data to channel {id}. For a job, it writes it to the
|
Send data to channel {id}. For a job, it writes it to the
|
||||||
@@ -4973,7 +4973,7 @@ matchadd({group}, {pattern} [, {priority} [, {id} [, {dict}]]])
|
|||||||
highlighted matches. The dict can have the following members:
|
highlighted matches. The dict can have the following members:
|
||||||
|
|
||||||
conceal Special character to show instead of the
|
conceal Special character to show instead of the
|
||||||
match (only for |hl-Conceal| highlighed
|
match (only for |hl-Conceal| highlighted
|
||||||
matches, see |:syn-cchar|)
|
matches, see |:syn-cchar|)
|
||||||
window Instead of the current window use the
|
window Instead of the current window use the
|
||||||
window with this number or window ID.
|
window with this number or window ID.
|
||||||
@@ -7709,14 +7709,13 @@ stdpath({what}) *stdpath()* *E6100*
|
|||||||
config String User configuration directory. |init.vim|
|
config String User configuration directory. |init.vim|
|
||||||
is stored here.
|
is stored here.
|
||||||
config_dirs List Other configuration directories.
|
config_dirs List Other configuration directories.
|
||||||
data String User data directory. The |shada-file|
|
data String User data directory.
|
||||||
is stored here.
|
|
||||||
data_dirs List Other data directories.
|
data_dirs List Other data directories.
|
||||||
log String Logs directory (for use by plugins too).
|
log String Logs directory (for use by plugins too).
|
||||||
run String Run directory: temporary, local storage
|
run String Run directory: temporary, local storage
|
||||||
for sockets, named pipes, etc.
|
for sockets, named pipes, etc.
|
||||||
state String Session state directory: storage for file
|
state String Session state directory: storage for file
|
||||||
drafts, undo, shada, etc.
|
drafts, undo, |shada|, etc.
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
:echo stdpath("config")
|
:echo stdpath("config")
|
||||||
|
|||||||
@@ -468,7 +468,7 @@ LspCodeLens
|
|||||||
|nvim_buf_set_extmark()|.
|
|nvim_buf_set_extmark()|.
|
||||||
|
|
||||||
LspCodeLensSeparator *hl-LspCodeLensSeparator*
|
LspCodeLensSeparator *hl-LspCodeLensSeparator*
|
||||||
Used to color the separator between two or more code lens.
|
Used to color the separator between two or more code lenses.
|
||||||
|
|
||||||
*lsp-highlight-signature*
|
*lsp-highlight-signature*
|
||||||
|
|
||||||
|
|||||||
@@ -6951,7 +6951,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
CTRL-P/CTRL-N, cause the highlight to move to the appropriate match.
|
CTRL-P/CTRL-N, cause the highlight to move to the appropriate match.
|
||||||
'wildmode' must specify "full": "longest" and "list" do not start
|
'wildmode' must specify "full": "longest" and "list" do not start
|
||||||
'wildmenu' mode. You can check the current mode with |wildmenumode()|.
|
'wildmenu' mode. You can check the current mode with |wildmenumode()|.
|
||||||
The menu is canceled when a key is hit that is not used for selecting
|
The menu is cancelled when a key is hit that is not used for selecting
|
||||||
a completion.
|
a completion.
|
||||||
|
|
||||||
While the menu is active these keys have special meanings:
|
While the menu is active these keys have special meanings:
|
||||||
|
|||||||
@@ -366,8 +366,8 @@ struct mapblock {
|
|||||||
char m_nowait; // <nowait> used
|
char m_nowait; // <nowait> used
|
||||||
char m_expr; // <expr> used, m_str is an expression
|
char m_expr; // <expr> used, m_str is an expression
|
||||||
sctx_T m_script_ctx; // SCTX where map was defined
|
sctx_T m_script_ctx; // SCTX where map was defined
|
||||||
char *m_desc; // description of keymap
|
char *m_desc; // description of mapping
|
||||||
bool m_replace_keycodes; // replace termcodes in lua function
|
bool m_replace_keycodes; // replace keycodes in result of expression
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Used for highlighting in the status line.
|
/// Used for highlighting in the status line.
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ static bool set_maparg_lhs_rhs(const char *const orig_lhs, const size_t orig_lhs
|
|||||||
replaced = replace_termcodes(orig_rhs, orig_rhs_len, &rhs_buf, REPTERM_DO_LT, NULL,
|
replaced = replace_termcodes(orig_rhs, orig_rhs_len, &rhs_buf, REPTERM_DO_LT, NULL,
|
||||||
cpo_flags);
|
cpo_flags);
|
||||||
mapargs->rhs_len = STRLEN(replaced);
|
mapargs->rhs_len = STRLEN(replaced);
|
||||||
// XXX: replace_termcodes may produce an empty string even if orig_rhs is non-empty
|
// NB: replace_termcodes may produce an empty string even if orig_rhs is non-empty
|
||||||
// (e.g. a single ^V, see :h map-empty-rhs)
|
// (e.g. a single ^V, see :h map-empty-rhs)
|
||||||
mapargs->rhs_is_noop = orig_rhs_len != 0 && mapargs->rhs_len == 0;
|
mapargs->rhs_is_noop = orig_rhs_len != 0 && mapargs->rhs_len == 0;
|
||||||
mapargs->rhs = (char_u *)replaced;
|
mapargs->rhs = (char_u *)replaced;
|
||||||
|
|||||||
Reference in New Issue
Block a user