mirror of
https://github.com/neovim/neovim.git
synced 2026-05-01 03:24:49 +00:00
docs: autocmds, misc
This commit is contained in:
@@ -184,6 +184,7 @@ end
|
||||
|
||||
--- Gets a human-readable representation of the given object.
|
||||
---
|
||||
---@see |vim.print()|
|
||||
---@see https://github.com/kikito/inspect.lua
|
||||
---@see https://github.com/mpeterv/vinspect
|
||||
local function inspect(object, options) -- luacheck: no unused
|
||||
@@ -870,6 +871,7 @@ end
|
||||
--- </pre>
|
||||
---
|
||||
--- @see |vim.inspect()|
|
||||
--- @see |:=|
|
||||
--- @return any # given arguments.
|
||||
function vim.print(...)
|
||||
if vim.in_fast_event() then
|
||||
|
||||
@@ -2457,7 +2457,7 @@ end
|
||||
--- buffer number as arguments. Example:
|
||||
--- <pre>lua
|
||||
--- vim.lsp.for_each_buffer_client(0, function(client, client_id, bufnr)
|
||||
--- print(vim.inspect(client))
|
||||
--- vim.print(client)
|
||||
--- end)
|
||||
--- </pre>
|
||||
---@deprecated use lsp.get_active_clients({ bufnr = bufnr }) with regular loop
|
||||
|
||||
Reference in New Issue
Block a user