mirror of
https://github.com/neovim/neovim.git
synced 2024-12-28 14:31:13 -07:00
feat: add __call typing for vim.inspect()
This commit is contained in:
parent
587490217e
commit
14b7ffcf89
@ -190,12 +190,18 @@ function vim._os_proc_children(ppid)
|
|||||||
return children
|
return children
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- @class vim.inspect.Opts
|
||||||
|
--- @field depth? integer
|
||||||
|
--- @field newline? string
|
||||||
|
--- @field process? fun(item:any, path: string[]): any
|
||||||
|
|
||||||
--- Gets a human-readable representation of the given object.
|
--- Gets a human-readable representation of the given object.
|
||||||
---
|
---
|
||||||
---@see |vim.print()|
|
---@see |vim.print()|
|
||||||
---@see https://github.com/kikito/inspect.lua
|
---@see https://github.com/kikito/inspect.lua
|
||||||
---@see https://github.com/mpeterv/vinspect
|
---@see https://github.com/mpeterv/vinspect
|
||||||
---@return string
|
---@return string
|
||||||
|
---@overload fun(x: any, opts?: vim.inspect.Opts): string
|
||||||
vim.inspect = vim.inspect
|
vim.inspect = vim.inspect
|
||||||
|
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user