mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
docs: fix typos and other small fixes (#25005)
Co-authored-by: nuid64 <lvkuzvesov@proton.me> Co-authored-by: Mike Smith <10135646+mikesmithgh@users.noreply.github.com> Co-authored-by: XTY <xty@xty.io> Co-authored-by: Empa <emanuel@empa.xyz> Co-authored-by: kyu08 <49891479+kyu08@users.noreply.github.com>
This commit is contained in:
2
runtime/doc/builtin.txt
generated
2
runtime/doc/builtin.txt
generated
@@ -5211,7 +5211,7 @@ printf({fmt}, {expr1} ...) *printf()*
|
|||||||
*printf-$*
|
*printf-$*
|
||||||
In certain languages, error and informative messages are
|
In certain languages, error and informative messages are
|
||||||
more readable when the order of words is different from the
|
more readable when the order of words is different from the
|
||||||
corresponding message in English. To accomodate translations
|
corresponding message in English. To accommodate translations
|
||||||
having a different word order, positional arguments may be
|
having a different word order, positional arguments may be
|
||||||
used to indicate this. For instance: >vim
|
used to indicate this. For instance: >vim
|
||||||
|
|
||||||
|
@@ -578,7 +578,7 @@ LspRequest *LspRequest*
|
|||||||
"data" table passed to the callback function.
|
"data" table passed to the callback function.
|
||||||
|
|
||||||
It triggers when the initial request is sent ({type} == `pending`) and
|
It triggers when the initial request is sent ({type} == `pending`) and
|
||||||
when the LSP server responds ({type} == `complete`). If a cancelation
|
when the LSP server responds ({type} == `complete`). If a cancellation
|
||||||
is requested using `client.cancel_request(request_id)`, then this event
|
is requested using `client.cancel_request(request_id)`, then this event
|
||||||
will trigger with {type} == `cancel`.
|
will trigger with {type} == `cancel`.
|
||||||
|
|
||||||
|
@@ -674,7 +674,7 @@ vim.regex:match_line({bufnr}, {line_idx}, {start}, {end_})
|
|||||||
vim.regex:match_str({str}) *regex:match_str()*
|
vim.regex:match_str({str}) *regex:match_str()*
|
||||||
Match the string against the regex. If the string should match the regex
|
Match the string against the regex. If the string should match the regex
|
||||||
precisely, surround the regex with `^` and `$` . If there was a match, the byte indices for the beginning and end of the
|
precisely, surround the regex with `^` and `$` . If there was a match, the byte indices for the beginning and end of the
|
||||||
match are returned. When there is no match, `nil` is returned. Because any integer is "truthy", `regex:match()` can be directly used as a condition in an if-statement.
|
match are returned. When there is no match, `nil` is returned. Because any integer is "truthy", `regex:match_str()` can be directly used as a condition in an if-statement.
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
• {str} (string)
|
• {str} (string)
|
||||||
@@ -1772,7 +1772,7 @@ vim.system({cmd}, {opts}, {on_exit}) *vim.system()*
|
|||||||
• stdout: (boolean|function) Handle output from stdout.
|
• stdout: (boolean|function) Handle output from stdout.
|
||||||
When passed as a function must have the signature
|
When passed as a function must have the signature
|
||||||
`fun(err: string, data: string)`. Defaults to `true`
|
`fun(err: string, data: string)`. Defaults to `true`
|
||||||
• stderr: (boolean|function) Handle output from stdout.
|
• stderr: (boolean|function) Handle output from stderr.
|
||||||
When passed as a function must have the signature
|
When passed as a function must have the signature
|
||||||
`fun(err: string, data: string)`. Defaults to `true`.
|
`fun(err: string, data: string)`. Defaults to `true`.
|
||||||
• text: (boolean) Handle stdout and stderr as text.
|
• text: (boolean) Handle stdout and stderr as text.
|
||||||
|
@@ -2901,10 +2901,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
n-v-c-sm:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20
|
n-v-c-sm:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20
|
||||||
In Normal et al. modes, use a block cursor
|
In Normal et al. modes, use a block cursor
|
||||||
with the default colors defined by the host
|
with the default colors defined by the host
|
||||||
terminal. In Insert-likes modes, use
|
terminal. In Insert-like modes, use
|
||||||
a vertical bar cursor with colors from
|
a vertical bar cursor with colors from
|
||||||
"Cursor" highlight group. In Replace-likes
|
"Cursor" highlight group. In Replace-like
|
||||||
modes, use a underline cursor with
|
modes, use an underline cursor with
|
||||||
default colors.
|
default colors.
|
||||||
i-ci:ver30-iCursor-blinkwait300-blinkon200-blinkoff150
|
i-ci:ver30-iCursor-blinkwait300-blinkon200-blinkoff150
|
||||||
In Insert and Command-line Insert mode, use a
|
In Insert and Command-line Insert mode, use a
|
||||||
|
@@ -104,7 +104,7 @@ vim.log = {
|
|||||||
--- Handle output from stdout. When passed as a function must have the signature `fun(err: string, data: string)`.
|
--- Handle output from stdout. When passed as a function must have the signature `fun(err: string, data: string)`.
|
||||||
--- Defaults to `true`
|
--- Defaults to `true`
|
||||||
--- - stderr: (boolean|function)
|
--- - stderr: (boolean|function)
|
||||||
--- Handle output from stdout. When passed as a function must have the signature `fun(err: string, data: string)`.
|
--- Handle output from stderr. When passed as a function must have the signature `fun(err: string, data: string)`.
|
||||||
--- Defaults to `true`.
|
--- Defaults to `true`.
|
||||||
--- - text: (boolean) Handle stdout and stderr as text. Replaces `\r\n` with `\n`.
|
--- - text: (boolean) Handle stdout and stderr as text. Replaces `\r\n` with `\n`.
|
||||||
--- - timeout: (integer) Run the command with a time limit. Upon timeout the process is sent the
|
--- - timeout: (integer) Run the command with a time limit. Upon timeout the process is sent the
|
||||||
|
6
runtime/lua/vim/_meta/options.lua
generated
6
runtime/lua/vim/_meta/options.lua
generated
@@ -2697,10 +2697,10 @@ vim.go.gp = vim.go.grepprg
|
|||||||
--- n-v-c-sm:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20
|
--- n-v-c-sm:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20
|
||||||
--- In Normal et al. modes, use a block cursor
|
--- In Normal et al. modes, use a block cursor
|
||||||
--- with the default colors defined by the host
|
--- with the default colors defined by the host
|
||||||
--- terminal. In Insert-likes modes, use
|
--- terminal. In Insert-like modes, use
|
||||||
--- a vertical bar cursor with colors from
|
--- a vertical bar cursor with colors from
|
||||||
--- "Cursor" highlight group. In Replace-likes
|
--- "Cursor" highlight group. In Replace-like
|
||||||
--- modes, use a underline cursor with
|
--- modes, use an underline cursor with
|
||||||
--- default colors.
|
--- default colors.
|
||||||
--- i-ci:ver30-iCursor-blinkwait300-blinkon200-blinkoff150
|
--- i-ci:ver30-iCursor-blinkwait300-blinkon200-blinkoff150
|
||||||
--- In Insert and Command-line Insert mode, use a
|
--- In Insert and Command-line Insert mode, use a
|
||||||
|
@@ -21,7 +21,7 @@ local regex = {} -- luacheck: no unused
|
|||||||
--- precisely, surround the regex with `^` and `$`. If there was a match, the
|
--- precisely, surround the regex with `^` and `$`. If there was a match, the
|
||||||
--- byte indices for the beginning and end of the match are returned. When
|
--- byte indices for the beginning and end of the match are returned. When
|
||||||
--- there is no match, `nil` is returned. Because any integer is "truthy",
|
--- there is no match, `nil` is returned. Because any integer is "truthy",
|
||||||
--- `regex:match()` can be directly used as a condition in an if-statement.
|
--- `regex:match_str()` can be directly used as a condition in an if-statement.
|
||||||
--- @param str string
|
--- @param str string
|
||||||
function regex:match_str(str) end
|
function regex:match_str(str) end
|
||||||
|
|
||||||
|
2
runtime/lua/vim/_meta/vimfn.lua
generated
2
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -6194,7 +6194,7 @@ function vim.fn.prevnonblank(lnum) end
|
|||||||
--- *printf-$*
|
--- *printf-$*
|
||||||
--- In certain languages, error and informative messages are
|
--- In certain languages, error and informative messages are
|
||||||
--- more readable when the order of words is different from the
|
--- more readable when the order of words is different from the
|
||||||
--- corresponding message in English. To accomodate translations
|
--- corresponding message in English. To accommodate translations
|
||||||
--- having a different word order, positional arguments may be
|
--- having a different word order, positional arguments may be
|
||||||
--- used to indicate this. For instance: >vim
|
--- used to indicate this. For instance: >vim
|
||||||
---
|
---
|
||||||
|
@@ -1,8 +1,7 @@
|
|||||||
Nvim core
|
Nvim core
|
||||||
=========
|
=========
|
||||||
|
|
||||||
Module-specific details are documented at the top of each module (`terminal.c`,
|
Module-specific details are documented at the top of each module (`terminal.c`, `undo.c`, …).
|
||||||
`screen.c`, …).
|
|
||||||
|
|
||||||
See `:help dev` for guidelines.
|
See `:help dev` for guidelines.
|
||||||
|
|
||||||
|
@@ -2524,7 +2524,7 @@ static bool arg_autocmd_flag_get(bool *flag, char **cmd_ptr, char *pattern, int
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// When kFalse: VimSuspend should be triggered next.
|
/// When kFalse: VimSuspend should be triggered next.
|
||||||
/// When kTrue: VimResume should be triggerd next.
|
/// When kTrue: VimResume should be triggered next.
|
||||||
/// When kNone: Currently triggering VimSuspend or VimResume.
|
/// When kNone: Currently triggering VimSuspend or VimResume.
|
||||||
static TriState pending_vimresume = kFalse;
|
static TriState pending_vimresume = kFalse;
|
||||||
|
|
||||||
|
@@ -7472,7 +7472,7 @@ M.funcs = {
|
|||||||
*printf-$*
|
*printf-$*
|
||||||
In certain languages, error and informative messages are
|
In certain languages, error and informative messages are
|
||||||
more readable when the order of words is different from the
|
more readable when the order of words is different from the
|
||||||
corresponding message in English. To accomodate translations
|
corresponding message in English. To accommodate translations
|
||||||
having a different word order, positional arguments may be
|
having a different word order, positional arguments may be
|
||||||
used to indicate this. For instance: >vim
|
used to indicate this. For instance: >vim
|
||||||
|
|
||||||
|
@@ -6329,7 +6329,7 @@ static void reduce_string(typval_T *argvars, typval_T *expr, typval_T *rettv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Implementaion of reduce() for Blob "argvars[0]" using the function "expr"
|
/// Implementation of reduce() for Blob "argvars[0]" using the function "expr"
|
||||||
/// starting with the optional initial value "argvars[2]" and return the result
|
/// starting with the optional initial value "argvars[2]" and return the result
|
||||||
/// in "rettv".
|
/// in "rettv".
|
||||||
static void reduce_blob(typval_T *argvars, typval_T *expr, typval_T *rettv)
|
static void reduce_blob(typval_T *argvars, typval_T *expr, typval_T *rettv)
|
||||||
|
@@ -1810,7 +1810,7 @@ static void getwinvar(typval_T *argvars, typval_T *rettv, int off)
|
|||||||
/// @param[in] tv typval to convert.
|
/// @param[in] tv typval to convert.
|
||||||
/// @param[in] option Option name.
|
/// @param[in] option Option name.
|
||||||
/// @param[in] flags Option flags.
|
/// @param[in] flags Option flags.
|
||||||
/// @param[out] error Whether an error occured.
|
/// @param[out] error Whether an error occurred.
|
||||||
///
|
///
|
||||||
/// @return Typval converted to OptVal. Must be freed by caller.
|
/// @return Typval converted to OptVal. Must be freed by caller.
|
||||||
/// Returns NIL_OPTVAL for invalid option name.
|
/// Returns NIL_OPTVAL for invalid option name.
|
||||||
|
@@ -39,7 +39,7 @@ enum {
|
|||||||
///
|
///
|
||||||
/// attrs[] contains the highlighting attribute for each cell.
|
/// attrs[] contains the highlighting attribute for each cell.
|
||||||
///
|
///
|
||||||
/// vcols[] countain the virtual columns in the line. -1 means not available
|
/// vcols[] contains the virtual columns in the line. -1 means not available
|
||||||
/// (below last line), MAXCOL means after the end of the line.
|
/// (below last line), MAXCOL means after the end of the line.
|
||||||
///
|
///
|
||||||
/// line_offset[n] is the offset from chars[], attrs[] and vcols[] for the start
|
/// line_offset[n] is the offset from chars[], attrs[] and vcols[] for the start
|
||||||
|
@@ -3441,10 +3441,10 @@ return {
|
|||||||
n-v-c-sm:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20
|
n-v-c-sm:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20
|
||||||
In Normal et al. modes, use a block cursor
|
In Normal et al. modes, use a block cursor
|
||||||
with the default colors defined by the host
|
with the default colors defined by the host
|
||||||
terminal. In Insert-likes modes, use
|
terminal. In Insert-like modes, use
|
||||||
a vertical bar cursor with colors from
|
a vertical bar cursor with colors from
|
||||||
"Cursor" highlight group. In Replace-likes
|
"Cursor" highlight group. In Replace-like
|
||||||
modes, use a underline cursor with
|
modes, use an underline cursor with
|
||||||
default colors.
|
default colors.
|
||||||
i-ci:ver30-iCursor-blinkwait300-blinkon200-blinkoff150
|
i-ci:ver30-iCursor-blinkwait300-blinkon200-blinkoff150
|
||||||
In Insert and Command-line Insert mode, use a
|
In Insert and Command-line Insert mode, use a
|
||||||
|
Reference in New Issue
Block a user