mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
Merge pull request #33930 from zeertzjq/vim-17ad852
vim-patch: doc updates
This commit is contained in:
8
runtime/doc/builtin.txt
generated
8
runtime/doc/builtin.txt
generated
@ -2457,7 +2457,7 @@ finddir({name} [, {path} [, {count}]]) *finddir()*
|
||||
• {count} (`integer?`)
|
||||
|
||||
Return: ~
|
||||
(`any`)
|
||||
(`string|string[]`)
|
||||
|
||||
findfile({name} [, {path} [, {count}]]) *findfile()*
|
||||
Just like |finddir()|, but find a file instead of a directory.
|
||||
@ -2470,10 +2470,10 @@ findfile({name} [, {path} [, {count}]]) *findfile()*
|
||||
Parameters: ~
|
||||
• {name} (`string`)
|
||||
• {path} (`string?`)
|
||||
• {count} (`any?`)
|
||||
• {count} (`integer?`)
|
||||
|
||||
Return: ~
|
||||
(`any`)
|
||||
(`string|string[]`)
|
||||
|
||||
flatten({list} [, {maxdepth}]) *flatten()*
|
||||
Flatten {list} up to {maxdepth} levels. Without {maxdepth}
|
||||
@ -8942,6 +8942,8 @@ setcursorcharpos({list})
|
||||
call cursor(4, 3)
|
||||
< positions the cursor on the first character '여'.
|
||||
|
||||
Returns 0 when the position could be set, -1 otherwise.
|
||||
|
||||
Parameters: ~
|
||||
• {list} (`integer[]`)
|
||||
|
||||
|
8
runtime/lua/vim/_meta/vimfn.lua
generated
8
runtime/lua/vim/_meta/vimfn.lua
generated
@ -2197,7 +2197,7 @@ function vim.fn.filter(expr1, expr2) end
|
||||
--- @param name string
|
||||
--- @param path? string
|
||||
--- @param count? integer
|
||||
--- @return any
|
||||
--- @return string|string[]
|
||||
function vim.fn.finddir(name, path, count) end
|
||||
|
||||
--- Just like |finddir()|, but find a file instead of a directory.
|
||||
@ -2209,8 +2209,8 @@ function vim.fn.finddir(name, path, count) end
|
||||
---
|
||||
--- @param name string
|
||||
--- @param path? string
|
||||
--- @param count? any
|
||||
--- @return any
|
||||
--- @param count? integer
|
||||
--- @return string|string[]
|
||||
function vim.fn.findfile(name, path, count) end
|
||||
|
||||
--- Flatten {list} up to {maxdepth} levels. Without {maxdepth}
|
||||
@ -8150,6 +8150,8 @@ function vim.fn.setcursorcharpos(lnum, col, off) end
|
||||
--- call cursor(4, 3)
|
||||
--- <positions the cursor on the first character '여'.
|
||||
---
|
||||
--- Returns 0 when the position could be set, -1 otherwise.
|
||||
---
|
||||
--- @param list integer[]
|
||||
--- @return any
|
||||
function vim.fn.setcursorcharpos(list) end
|
||||
|
@ -2795,6 +2795,7 @@ M.funcs = {
|
||||
]=],
|
||||
name = 'finddir',
|
||||
params = { { 'name', 'string' }, { 'path', 'string' }, { 'count', 'integer' } },
|
||||
returns = 'string|string[]',
|
||||
signature = 'finddir({name} [, {path} [, {count}]])',
|
||||
},
|
||||
findfile = {
|
||||
@ -2810,7 +2811,8 @@ M.funcs = {
|
||||
|
||||
]=],
|
||||
name = 'findfile',
|
||||
params = { { 'name', 'string' }, { 'path', 'string' }, { 'count', 'any' } },
|
||||
params = { { 'name', 'string' }, { 'path', 'string' }, { 'count', 'integer' } },
|
||||
returns = 'string|string[]',
|
||||
signature = 'findfile({name} [, {path} [, {count}]])',
|
||||
},
|
||||
flatten = {
|
||||
@ -9872,6 +9874,7 @@ M.funcs = {
|
||||
call cursor(4, 3)
|
||||
<positions the cursor on the first character '여'.
|
||||
|
||||
Returns 0 when the position could be set, -1 otherwise.
|
||||
]=],
|
||||
name = 'setcursorcharpos',
|
||||
params = { { 'list', 'integer[]' } },
|
||||
|
Reference in New Issue
Block a user