docs: autocmds, misc

This commit is contained in:
Justin M. Keyes
2023-06-23 12:16:55 +02:00
parent 036da0d079
commit 49a7585981
13 changed files with 64 additions and 54 deletions

View File

@@ -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

View File

@@ -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