mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
chore: fix typos
Co-authored-by: ii14 <ii14@users.noreply.github.com>
This commit is contained in:
parent
e4976cbd26
commit
bc1d13bb36
@ -3584,7 +3584,7 @@ count({comp}, {expr} [, {ic} [, {start}]]) *count()*
|
|||||||
|
|
||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
mylist->count(val)
|
mylist->count(val)
|
||||||
|
<
|
||||||
*cscope_connection()*
|
*cscope_connection()*
|
||||||
cscope_connection([{num} , {dbpath} [, {prepend}]])
|
cscope_connection([{num} , {dbpath} [, {prepend}]])
|
||||||
Checks for the existence of a |cscope| connection. If no
|
Checks for the existence of a |cscope| connection. If no
|
||||||
@ -3937,7 +3937,7 @@ exepath({expr}) *exepath()*
|
|||||||
|
|
||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetCommand()->exepath()
|
GetCommand()->exepath()
|
||||||
|
<
|
||||||
*exists()*
|
*exists()*
|
||||||
exists({expr}) The result is a Number, which is |TRUE| if {expr} is
|
exists({expr}) The result is a Number, which is |TRUE| if {expr} is
|
||||||
defined, zero otherwise.
|
defined, zero otherwise.
|
||||||
@ -4483,7 +4483,7 @@ foldlevel({lnum}) *foldlevel()*
|
|||||||
|
|
||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetLnum()->foldlevel()
|
GetLnum()->foldlevel()
|
||||||
|
<
|
||||||
*foldtext()*
|
*foldtext()*
|
||||||
foldtext() Returns a String, to be displayed for a closed fold. This is
|
foldtext() Returns a String, to be displayed for a closed fold. This is
|
||||||
the default function used for the 'foldtext' option and should
|
the default function used for the 'foldtext' option and should
|
||||||
|
@ -1235,7 +1235,7 @@ on_key({fn}, {ns_id}) *vim.on_key()*
|
|||||||
it removes the callback for the associated
|
it removes the callback for the associated
|
||||||
{ns_id}
|
{ns_id}
|
||||||
{ns_id} number? Namespace ID. If nil or 0, generates and
|
{ns_id} number? Namespace ID. If nil or 0, generates and
|
||||||
returns a new |nvim_create_namesapce()| id.
|
returns a new |nvim_create_namespace()| id.
|
||||||
|
|
||||||
Return: ~
|
Return: ~
|
||||||
number Namespace id associated with {fn}. Or count of all
|
number Namespace id associated with {fn}. Or count of all
|
||||||
@ -1613,14 +1613,12 @@ validate({opt}) *vim.validate()*
|
|||||||
|
|
||||||
vim.validate{arg1={{'foo'}, 'table'}, arg2={'foo', 'string'}}
|
vim.validate{arg1={{'foo'}, 'table'}, arg2={'foo', 'string'}}
|
||||||
=> NOP (success)
|
=> NOP (success)
|
||||||
<
|
|
||||||
>
|
vim.validate{arg1={1, 'table'}}
|
||||||
vim.validate{arg1={1, 'table'}}
|
=> error('arg1: expected table, got number')
|
||||||
=> error('arg1: expected table, got number')
|
|
||||||
<
|
vim.validate{arg1={3, function(a) return (a % 2) == 0 end, 'even number'}}
|
||||||
>
|
=> error('arg1: expected even number, got 3')
|
||||||
vim.validate{arg1={3, function(a) return (a % 2) == 0 end, 'even number'}}
|
|
||||||
=> error('arg1: expected even number, got 3')
|
|
||||||
<
|
<
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
|
@ -454,7 +454,7 @@ local on_key_cbs = {}
|
|||||||
--- On each key press, Nvim passes the key char to fn(). |i_CTRL-V|
|
--- On each key press, Nvim passes the key char to fn(). |i_CTRL-V|
|
||||||
--- If {fn} is nil, it removes the callback for the associated {ns_id}
|
--- If {fn} is nil, it removes the callback for the associated {ns_id}
|
||||||
---@param ns_id number? Namespace ID. If nil or 0, generates and returns a new
|
---@param ns_id number? Namespace ID. If nil or 0, generates and returns a new
|
||||||
--- |nvim_create_namesapce()| id.
|
--- |nvim_create_namespace()| id.
|
||||||
---
|
---
|
||||||
---@return number Namespace id associated with {fn}. Or count of all callbacks
|
---@return number Namespace id associated with {fn}. Or count of all callbacks
|
||||||
---if on_key() is called without arguments.
|
---if on_key() is called without arguments.
|
||||||
|
Loading…
Reference in New Issue
Block a user