fix(types): add missing @return annotations

This commit is contained in:
Josh Cooper
2026-01-22 19:48:54 +00:00
committed by Lewis Russell
parent 1f0dbfea2f
commit 9988d7142d
4 changed files with 9 additions and 4 deletions

View File

@@ -1485,7 +1485,7 @@ end
---@param bufnr? integer Buffer number to get diagnostics from. Use 0 for
--- current buffer or nil for all buffers.
---@param opts? vim.diagnostic.GetOpts
---@return table : Table with actually present severity values as keys
---@return table<integer, integer> : Table with actually present severity values as keys
--- (see |diagnostic-severity|) and integer counts as values.
function M.count(bufnr, opts)
vim.validate('bufnr', bufnr, 'number', true)

View File

@@ -1191,6 +1191,7 @@ end
--- Note: Some language server capabilities can be file specific.
--- @param method vim.lsp.protocol.Method.ClientToServer | vim.lsp.protocol.Method.Registration
--- @param bufnr? integer
--- @return boolean
function Client:supports_method(method, bufnr)
-- Deprecated form
if type(bufnr) == 'table' then